visitFieldElement method

  1. @override
dynamic visitFieldElement(
  1. FieldElement element
)
override

Implementation

@override
dynamic visitFieldElement(FieldElement element) {
  final elementType = element.type.toString();

  // DartType ends with '*', which needs to be eliminated
  // for the generated code to be accurate.
  fields[element.name] = elementType.replaceFirst('*', '');
  metaData[element.name] = element.metadata;
}