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