getBates method
Gets the current Bates numbering configuration.
Returns null when no Bates numbering is applied.
example:
final bates = await controller.document.getBates();
if (bates != null) {
debugPrint('Bates pages: ${bates.pages}');
}
Implementation
Future<CPDFBates?> getBates() async {
final result = await _channel.invokeMethod('get_bates');
if (result is! Map) return null;
return CPDFBates.fromJson(Map<String, dynamic>.from(result));
}