copyWith method
Implementation
BaseStateGallery<T> copyWith({
T? data,
String? error,
bool? isLoading,
bool? hasPermission,
bool? hasError,
}) =>
BaseStateGallery<T>(
data: data ?? this.data,
error: error ?? this.error,
isLoading: isLoading ?? this.isLoading,
hasPermission: hasPermission ?? this.hasPermission,
hasError: hasError ?? this.hasError,
);