withError method

T withError(
  1. String message
)

Implementation

T withError(String message) =>
    copyWith(errorMessage: message, isLoading: false);