iosPluginSwiftStub function

String iosPluginSwiftStub(
  1. String className
)

iOS *Plugin.swift stub — created when the file is missing.

Implementation

String iosPluginSwiftStub(String className) => '''import Flutter
import UIKit

public class ${className}Plugin: NSObject, FlutterPlugin {
  public static func register(with registrar: FlutterPluginRegistrar) {
    // Nitro registration will be injected here by nitrogen link.
  }
}
''';