registerWith static method

void registerWith(
  1. Registrar registrar
)

Implementation

static void registerWith(Registrar registrar) {
  final MethodChannel channel = MethodChannel(
    'flutter_i18n',
    const StandardMethodCodec(),
    registrar,
  );

  final pluginInstance = FlutterI18nWeb();
  channel.setMethodCallHandler(pluginInstance.handleMethodCall);
}