setDatalogerByP0x18 method

  1. @override
Future<List<int>?> setDatalogerByP0x18(
  1. Map<String, dynamic> map
)
override

Implementation

@override
Future<List<int>?> setDatalogerByP0x18(Map<String, dynamic> map) async {
  try {
    if (Platform.isAndroid) {
      return (await methodChannel.invokeMethod('setDatalogerByP0x18', map)) as List<int>;
    } else {
      var back = (await methodChannel.invokeMapMethod("enCodeWithParams", map));
      return back?["data"] as List<int>;
    }
  } catch (e) {
    // print("e:$e");
    return null;
  }
}