isFormData function

bool isFormData(
  1. DartType type
)

True iff type is FormData from package:gisila.

Implementation

bool isFormData(DartType type) {
  final element = type.element;
  if (element is! ClassElement) return false;
  return element.name == 'FormData' &&
      element.library.identifier.startsWith('package:gisila/');
}