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