copyWith method

GetTextCompositionStyleExample copyWith({
  1. String? name,
  2. int? exampleNumber,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

GetTextCompositionStyleExample copyWith({String? name, int? exampleNumber}) =>
    GetTextCompositionStyleExample(
      name: name ?? this.name,
      exampleNumber: exampleNumber ?? this.exampleNumber,
    );