attribute property
String
attribute
Returns code of field declaration as method attribute.
Implementation
String get attribute {
if (!array) return '${optional ? '' : 'required '}$_type${optional ? '?' : ''} $name,';
else return '${optional ? '' : 'required '}List<$_type>${optional ? '?' : ''} $name,';
}