copyWith method
CascadeModel
copyWith({
- required String code,
- required String name,
- List<
CascadeModel> ? children,
Implementation
CascadeModel copyWith({
required String code,
required String name,
List<CascadeModel>? children,
}) {
return new CascadeModel(
code: code,
name: name,
children: children ?? this.children,
);
}