copyWith method

  1. @override
LayoutFlex copyWith({
  1. String? id,
  2. int? size,
  3. bool? isFlex,
  4. List<LayoutItem>? children,
  5. Axis? direction,
})
override

Implementation

@override
LayoutFlex copyWith(
        {String? id,
        int? size,
        bool? isFlex,
        List<LayoutItem>? children,
        Axis? direction}) =>
    LayoutFlex(
        id: id ?? this.id,
        size: size ?? this.size,
        isFlex: isFlex ?? this.isFlex,
        children: children ?? this.children,
        direction: direction ?? this.direction);