AsyncFormValue<Request, Response>.loading constructor

const AsyncFormValue<Request, Response>.loading({
  1. Request? request,
  2. Response? response,
})

Creates a loading form state.

Optionally, you can provide the previous request and response data to be preserved during the loading state.

Implementation

const factory AsyncFormValue.loading({
  Request? request,
  Response? response,
}) = AsyncFormLoading<Request, Response>;