EmbedderProvider.create constructor
EmbedderProvider.create(
- FlutterEmbedder embedder,
- DeviceConfigContext context,
- RemoteControllerService remoteControllerService
Implementation
factory EmbedderProvider.create(
FlutterEmbedder embedder,
DeviceConfigContext context,
RemoteControllerService remoteControllerService,
) {
switch (embedder) {
case FlutterEmbedder.flutter:
return FlutterLinuxEmbedderProvider(
context: context,
remoteControllerService: remoteControllerService,
);
case FlutterEmbedder.flutterPi:
return FlutterPiEmbedderProvider(
context: context,
remoteControllerService: remoteControllerService,
);
}
}