import 'package:flutter/services.dart'; class GoogleCast { static const _channel = MethodChannel('google_cast'); static Future showCastDialog() async { await _channel.invokeMethod('showCastDialog'); } static Future loadUrl(String url, String mimeType) async { await _channel.invokeMethod('loadUrl', { 'url': url, 'mimeType': mimeType, }); } static Future stop() async { await _channel.invokeMethod('stop'); } }