copyWith method

LoadingConfig copyWith({
  1. bool? isLoading,
  2. Widget? loadingIndicator,
  3. Color? typingIndicatorColor,
  4. double? typingIndicatorSize,
  5. bool? showCenteredIndicator,
})

Implementation

LoadingConfig copyWith({
  bool? isLoading,
  Widget? loadingIndicator,
  Color? typingIndicatorColor,
  double? typingIndicatorSize,
  bool? showCenteredIndicator,
}) =>
    LoadingConfig(
      isLoading: isLoading ?? this.isLoading,
      loadingIndicator: loadingIndicator ?? this.loadingIndicator,
      typingIndicatorColor: typingIndicatorColor ?? this.typingIndicatorColor,
      typingIndicatorSize: typingIndicatorSize ?? this.typingIndicatorSize,
      showCenteredIndicator:
          showCenteredIndicator ?? this.showCenteredIndicator,
    );