setPrintArea method

  1. @override
Future<bool> setPrintArea(
  1. double width,
  2. double height
)
override

Set print area size

Implementation

@override
Future<bool> setPrintArea(double width, double height) async {
  final result = await methodChannel.invokeMethod<bool>('setPrintArea', {
    'width': width,
    'height': height,
  });
  return result ?? false;
}