setOptions method
ios && android
初始化配置
androidOption
-- Android 配置
Implementation
Future<void> setOptions({AndroidOption? androidOption, IosOptions? iosOptions}) async {
const methodName = "set-option";
if (androidOption != null || iosOptions != null) {
exec(androidCall: () async {
await _channel.invokeMapMethod(methodName, androidOption?.toMap());
}, iosCall: () async {
await _channel.invokeMapMethod(methodName, iosOptions?.toMap());
});
} else {
await _channel.invokeMethod(methodName);
}
}