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