ChromeCastButton constructor
ChromeCastButton({
- Key? key,
- double size = 30.0,
- Color color = Colors.black,
- OnButtonCreated? onButtonCreated,
- VoidCallback? onSessionStarted,
- VoidCallback? onSessionEnded,
- VoidCallback? onRequestCompleted,
- OnRequestFailed? onRequestFailed,
- OnPlayerStatusUpdated? onPlayerStatusUpdated,
Creates a widget displaying a ChromeCast button.
Implementation
ChromeCastButton({
super.key,
this.size = 30.0,
this.color = Colors.black,
this.onButtonCreated,
this.onSessionStarted,
this.onSessionEnded,
this.onRequestCompleted,
this.onRequestFailed,
this.onPlayerStatusUpdated,
}) : assert(
defaultTargetPlatform == TargetPlatform.iOS ||
defaultTargetPlatform == TargetPlatform.android,
'$defaultTargetPlatform is not supported by this plugin',
);