copyWith method

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

Implementation

@override
LayoutStack copyWith(
        {String? id, int? size, bool? isFlex, List<LayoutItem>? children}) =>
    LayoutStack(
        id: id ?? this.id,
        size: size ?? this.size,
        isFlex: isFlex ?? this.isFlex,
        children: children != null
            ? children.whereType<LayoutWidget>().toList()
            : this.children);