setAutomaticShutoffTime method

  1. @override
Future<bool?> setAutomaticShutoffTime(
  1. int minutes
)
override

setAutomaticShutoffTime() asynchronously sets the automatic shutdown time of the printer in minutes and returns a Boolean value afterwards with the result of the setAutomaticShutoffTime operation (i.e. success or failure).

Implementation

@override
Future<bool?> setAutomaticShutoffTime(int minutes) async {
  var sendMap = <String, dynamic>{"minutes": minutes};
  bool? setResult = await methodChannel.invokeMethod<bool>(
      'setAutomaticShutoffTime', sendMap);
  return setResult;
}