// // MinPlugin.swift // Runner // // Created by 冯美坎 on 2021/6/18. // import Foundation import Flutter import UIKit public class SwiftMinPlugin: NSObject, FlutterPlugin { public static func register(with registrar: FlutterPluginRegistrar) { let channel = FlutterMethodChannel(name: "min", binaryMessenger: registrar.messenger()) let instance = SwiftMinPlugin() registrar.addMethodCallDelegate(instance, channel: channel) } public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) { result("iOS " + UIDevice.current.systemVersion) } }