getConstructorInput function

String? getConstructorInput(
  1. FieldDeclaration field
)

Implementation

String? getConstructorInput(FieldDeclaration field) {
  var mi = field.fields.variables.first.initializer as MethodInvocation;
  var val = mi.argumentList.arguments.first as SimpleStringLiteral;
  return val.stringValue;
}