EmbedderProvider.create constructor

EmbedderProvider.create(
  1. FlutterEmbedder embedder,
  2. DeviceConfigContext context,
  3. 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,
      );
  }
}