copyWith method

GridItem<T> copyWith({
  1. String? image,
  2. String? id,
  3. String? title,
  4. bool? disabled,
  5. T? data,
})

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,
  );
}