copyWith method

SpinnerModel copyWith({
  1. Spinner? spinner,
  2. int? frame,
  3. int? tag,
})

Creates a copy with the given fields replaced.

Implementation

SpinnerModel copyWith({Spinner? spinner, int? frame, int? tag}) {
  return SpinnerModel._internal(
    spinner: spinner ?? _spinner,
    frame: frame ?? _frame,
    id: _id,
    tag: tag ?? _tag,
  );
}