NetworkType enum

An enumeration of various network types that can be used as WorkConstraints.

Inheritance

Constructors

NetworkType()
const

Values

connected → const NetworkType

Any working network connection is required for this work.

metered → const NetworkType

A metered network connection is required for this work.

notRequired → const NetworkType

A network is not required for this work.

notRoaming → const NetworkType

A non-roaming network connection is required for this work.

unmetered → const NetworkType

An unmetered network connection is required for this work.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<NetworkType>
A constant List of the values in this enum, in order of their declaration.