copyWith method
Implementation
MethodEntity copyWith({
final ID? id,
final MethodTypes? type,
final List<ActionEntity>? actions,
}) =>
MethodEntity(
id: id ?? this.id,
type: type ?? this.type,
actions: actions ?? this.actions,
);