getWeight method

  1. @override
Future<AclasWeightInfo?> getWeight()
override

Read current weight once.

Implementation

@override
Future<AclasWeightInfo?> getWeight() async {
  final map = await methodChannel.invokeMethod<Map<Object?, Object?>>(
    'getWeight',
  );
  if (map == null) return null;
  return AclasWeightInfo.fromMap(map);
}