copyWith method
Implementation
GridItem<T> copyWith({
String? image,
String? id,
String? title,
bool? disabled,
T? data,
}) {
return GridItem<T>(
image: image ?? this.image,
id: id ?? this.id,
title: title ?? this.title,
disabled: disabled ?? this.disabled,
data: data ?? this.data,
);
}