AMapEmptyStringIfNil function

Future<String> AMapEmptyStringIfNil(
  1. String s
)

Implementation

Future<String> AMapEmptyStringIfNil(String s) async {
  // print log
  if (fluttifyLogEnabled) {
    debugPrint('fluttify-dart: AMapEmptyStringIfNil::AMapEmptyStringIfNil([\'s\':$s])');
  }

  // invoke native method
  final __result__ = await MethodChannel('me.yohom/amap_core_fluttify', StandardMethodCodec(FluttifyMessageCodec('amap_core_fluttify'))).invokeMethod('AMapEmptyStringIfNil::AMapEmptyStringIfNil', {"s": s});


  // handle native call


  // convert native result to dart side object
  if (__result__ == null) {
    return null;
  } else {
    return __result__;
  }
}