FetchStatus enum Null safety

Used by FetchProgress to indicate the progress of a download.

Constants

complete → const FetchStatus

the download is complete.

const FetchStatus(6)
connected → const FetchStatus

We have connected to the remote server.

const FetchStatus(2)
connecting → const FetchStatus

We have stated the process of connecting to the remote resource.

const FetchStatus(1)
downloading → const FetchStatus

we have connected and recieved our first chunk of data.

const FetchStatus(5)
error → const FetchStatus

An error occured whilst attempting to fetch the resource. All fetch operations will cease an an FetchException will be thrown.

const FetchStatus(7)
headers → const FetchStatus

Called when we recieve the headersafter we connect.

const FetchStatus(4)
initialising → const FetchStatus

we are preparing to download. You will always see one and only one instance of this status in a FetchProgress event. In most cases the fetch will only stay in this state for a moment.

const FetchStatus(0)
response → const FetchStatus

After connection we get a responseCode.

const FetchStatus(3)
values → const List<FetchStatus>

A constant List of the values in this enum, in order of their declaration.

const List<FetchStatus>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited