copyWith method

BaseStateGallery<T> copyWith({
  1. T? data,
  2. String? error,
  3. bool? isLoading,
  4. bool? hasPermission,
  5. bool? hasError,
})

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