onVideoPlayback property Null safety

VideoPlaybackCallback? onVideoPlayback

The callback of video playback.

Implementation

VideoPlaybackCallback? get onVideoPlayback => _onVideoPlayback;
void onVideoPlayback=(VideoPlaybackCallback? newValue)

Implementation

set onVideoPlayback(VideoPlaybackCallback? newValue) {
  _onVideoPlayback = newValue;

  final nativeMethodName = FWMethodNameUtil.convertToNativeMethod(
      FWNativeMethodName.setVideoPlaybackEventEnabled);
  FWMethodChannelUtil.getFirewokSDKChannel()
      .invokeListMethod(nativeMethodName, newValue != null);
}