update method

  1. @override
Future<void> update(
  1. CastNotice notice
)
override

What is shown while held, again: playing or paused, another video.

Implementation

@override
Future<void> update(CastNotice notice) async {
  try {
    await _channel.invokeMethod<void>('update', notice.toMap());
  } on MissingPluginException {
    // Nothing is shown.
  } on PlatformException {
    // The notice stays as it was.
  }
}