feedPaper method
Implementation
@override
Future<bool> feedPaper({int lines = 10}) async {
debugPrint('MethodChannel: feedPaper CALLED with lines: $lines');
try {
final params = {
'lines': lines,
};
debugPrint('MethodChannel: Invoking feedPaper with params: $params');
final bool? result = await methodChannel.invokeMethod<bool>('feedPaper', params);
debugPrint('MethodChannel: feedPaper result: $result');
return result ?? false;
} on PlatformException catch (e) {
throw Exception('Feed paper failed: ${e.message}');
}
}