showWidgetPropertiesView method

Future<void> showWidgetPropertiesView(
  1. CPDFWidget widget
)

Displays the properties panel for the specified form field widget. Only some form field types are supported. If an unsupported type is passed in (such as signature fields, unknown, etc.), an exception will be thrown.

Parameters:

  • widget The form field widget CPDFWidget for which to display the properties panel.

Exceptions:

  • If an unsupported form field type is passed in, an Exception will be thrown

Example:

await controller.showWidgetPropertiesView(widget);

Implementation

Future<void> showWidgetPropertiesView(CPDFWidget widget) async {
  if (widget.type == CPDFFormType.signaturesFields ||
      widget.type == CPDFFormType.unknown) {
    throw Exception(
        'This type:${widget.type} of form field is not supported, please select another type.');
  }
  return await _channel.invokeMethod(
      'show_widget_properties_view', widget.toJson());
}