copyWith method

CmdEntity copyWith({
  1. String? id,
  2. String? step,
  3. String? desc,
})

Implementation

CmdEntity copyWith({
  String? id,
  String? step,
  String? desc,
}) {
  return CmdEntity()
    ..id = id ?? this.id
    ..step = step ?? this.step
    ..desc = desc ?? this.desc;
}