|
|
|
|
@ -59,11 +59,11 @@ class PlatformBridge(binaryMessenger: BinaryMessenger, flutterMainActivity: Flut
|
|
|
|
|
private fun showLoading(methodCall: MethodCall, result: MethodChannel.Result){
|
|
|
|
|
(methodCall.arguments as ArrayList<*>).let {
|
|
|
|
|
require(it.size > 1 && (it[0] is Boolean) && (it[1] is String),lazyMessage = {
|
|
|
|
|
"Missing or invalid arguments (Must have two argument 'Boolean at 0' and 'String at 1'"
|
|
|
|
|
"Missing or invalid arguments (Must have two argument 'String at 1' and 'Boolean at 1'"
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
val show = it[0] as Boolean
|
|
|
|
|
val message = it[0] as String
|
|
|
|
|
val show = it[1] as Boolean
|
|
|
|
|
HMGUtils.showLoading(mainActivity,show,message)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|