weightChannelIsWeighDevice property

Future<bool> weightChannelIsWeighDevice

称重相关

Implementation

/*查看是否是称重设备*/
static Future<bool> get weightChannelIsWeighDevice async {
  final bool isWeighDevice = await _sWeightMethodChannel
      .invokeMethod(WeightConstants.IS_WEIGHT_PLATFORM).catchError((error){
    throw '${error?.message??''}';
  });
  return isWeighDevice;
}