registerWith static method

void registerWith(
  1. Registrar registrar
)

Implementation

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

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