copyWith method

ButtonOptions copyWith({
  1. String? text,
  2. bool? isEnabled,
})

Implementation

ButtonOptions copyWith({String? text, bool? isEnabled}) => ButtonOptions(
      text: text ?? this.text,
      isEnabled: isEnabled ?? this.isEnabled,
    );