copyWith method
MediaControl
copyWith({
- String? androidIcon,
- String? label,
- MediaAction? action,
- CustomMediaAction? customAction,
Creates a copy of this control with given fields replaced by new values.
Implementation
MediaControl copyWith({
String? androidIcon,
String? label,
MediaAction? action,
CustomMediaAction? customAction,
}) =>
MediaControl(
androidIcon: androidIcon ?? this.androidIcon,
label: label ?? this.label,
action: action ?? this.action,
customAction: customAction ?? this.customAction,
);