copyWith method

Variable copyWith({
  1. String? name,
  2. String? typeString,
  3. DartType? type,
  4. bool? isCoreType,
  5. bool? isNullable,
  6. bool? isFinal,
  7. bool? hasRequired,
  8. bool? isList,
  9. bool? isEnum,
})

Implementation

Variable copyWith({
  String? name,
  String? typeString,
  DartType? type,
  bool? isCoreType,
  bool? isNullable,
  bool? isFinal,
  bool? hasRequired,
  bool? isList,
  bool? isEnum,
}) =>
    Variable(
      name: name ?? this.name,
      typeString: typeString ?? this.typeString,
      type: type ?? this.type,
      isCoreType: isCoreType ?? this.isCoreType,
      isNullable: isNullable ?? this.isNullable,
      isFinal: isFinal ?? this.isFinal,
      hasRequired: hasRequired ?? this.hasRequired,
      isList: isList ?? this.isList,
      isEnum: isEnum ?? this.isEnum,
    );