copyWith method

Area copyWith({
  1. dynamic id()?,
  2. double? size()?,
  3. double? flex()?,
  4. double? min()?,
  5. double? max()?,
  6. dynamic data()?,
  7. AreaWidgetBuilder? builder()?,
})

Creates a copy of this Area with the given fields replaced with their.

Implementation

Area copyWith({
  dynamic Function()? id,
  double? Function()? size,
  double? Function()? flex,
  double? Function()? min,
  double? Function()? max,
  dynamic Function()? data,
  AreaWidgetBuilder? Function()? builder,
}) {
  return Area(
    id: id == null ? this.id : id(),
    size: size == null ? this.size : size(),
    flex: flex == null ? this.flex : flex(),
    min: min == null ? this.min : min(),
    max: max == null ? this.max : max(),
    data: data == null ? this.data : data(),
    builder: builder == null ? this.builder : builder(),
  );
}