copyWith method

  1. @override
VisibilityModifierSpec copyWith({
  1. bool? visible,
})
override

Creates a copy of this spec with the given fields replaced by the non-null parameter values.

Implementation

@override
VisibilityModifierSpec copyWith({bool? visible}) {
  return VisibilityModifierSpec(visible ?? this.visible);
}