FlutterCastFramework.create constructor

FlutterCastFramework.create(
  1. List<String> namespaces
)

Create the Flutter Cast Framework. namespaces is the list of namespaces to listen for custom messages.

Implementation

FlutterCastFramework.create(List<String> namespaces) {
  debugPrint("FlutterCastFramework created!");
  final castContext = CastContext(_hostApi);
  this._castFlutterApiImplementor = new _CastFlutterApiImplementor(
    castContext: castContext,
    namespaces: namespaces,
  );

  CastFlutterApi.setup(this._castFlutterApiImplementor);
}