isLoading property
bool
get
isLoading
data has yet to be specified from any source for the most recent operation (including QueryResultSource.optimisticResult)
NOTE: query updating methods like fetchMore
and refetch
will send
an isLoading, so it is best practice to check both isLoading && data != null
before assuming there is no data that should be displayed.
Implementation
bool get isLoading => source == QueryResultSource.loading;