buildWhen property

(bool Function(YoutubePlayerValue, YoutubePlayerValue)?) buildWhen
final

buildWhen will be invoked on each controller value change. buildWhen takes the previous value and current state and must return a bool which determines whether or not the builder function will be invoked.

buildWhen is optional and if omitted, it will default to true.

Implementation

final bool Function(YoutubePlayerValue, YoutubePlayerValue)? buildWhen;