copyWith method

MethodEntity copyWith({
  1. ID? id,
  2. MethodTypes? type,
  3. List<ActionEntity>? actions,
})

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,
    );