copyWith method

  1. @useResult
FResizableRegionData copyWith({
  1. int? index,
  2. double? minExtent,
  3. double? maxExtent,
  4. double? minOffset,
  5. double? maxOffset,
})

Returns a copy of this FResizableRegionData with the given fields replaced by the new values.

Implementation

@useResult
FResizableRegionData copyWith({
  int? index,
  double? minExtent,
  double? maxExtent,
  double? minOffset,
  double? maxOffset,
}) =>
    FResizableRegionData(
      index: index ?? this.index,
      extent: (min: minExtent ?? extent.min, max: maxExtent ?? extent.max, total: extent.total),
      offset: (min: minOffset ?? offset.min, max: maxOffset ?? offset.max),
    );