setToleranceCents method

  1. @override
Future<void> setToleranceCents(
  1. double toleranceCents
)
override

Implementation

@override
Future<void> setToleranceCents(double toleranceCents) async {
  try {
    await _methodChannel.invokeMethod('setToleranceCents', {
      'toleranceCents': toleranceCents,
    });
  } on PlatformException catch (e) {
    throw Exception('Failed to set toleranceCents: ${e.message}');
  }
}