getFormCreationMode method

Future<CPDFFormType> getFormCreationMode()

Get the type of form field added to the current touch page This method is only available in CPDFViewMode.forms mode. Example:

CPDFFormType type = await controller.getFormCreationMode();

Implementation

Future<CPDFFormType> getFormCreationMode() async {
  String typeName = await _channel.invokeMethod('get_form_creation_mode');
  return CPDFFormType.values.firstWhere((e) => e.name == typeName);
}