setCounterPreferences method
Future<void>
setCounterPreferences({
- required SMKitCounterPreferences counterPreferences,
- void onHandle(
- SMKitStatus p1
override
Implementation
@override
Future<void> setCounterPreferences({
required SMKitCounterPreferences counterPreferences,
void Function(SMKitStatus p1)? onHandle,
}) async {
try {
final arg = {'counterPreferences': counterPreferences.name};
// Fire and forget - don't await the result
methodChannel.invokeMethod('setCounterPreferences', arg);
} on PlatformException catch (e) {
debugPrint('PlaformException: ${e.message}');
}
}