Server.create constructor

Server.create({
  1. required String configPath,
  2. String? debugLabel,
})

Implementation

factory Server.create({required String configPath, String? debugLabel}) {
  if (Platform.isAndroid) {
    return MethodChannelServer(
      configPath: configPath,
      debugLabel: debugLabel,
    );
  } else {
    return FfiServer(
      configPath: configPath,
      debugLabel: debugLabel,
    );
  }
}