copyWith method

EnumType copyWith({
  1. bool? nullable,
  2. List<String>? values,
})

Copy this instance with different nullable value.

Implementation

EnumType copyWith({
  bool? nullable,
  List<String>? values,
}) =>
    EnumType(
        className: className,
        values: values ?? this.values,
        valuesJSON: valuesJSON,
        nullable: nullable ?? this.nullable);