RequestType class

The request type when requesting paths.

  • all - Request paths that return all kind of assets.
  • common - Request paths that return images and videos.
  • image - Request paths that only return images.
  • video - Request paths that only return videos.
  • audio - Request paths that only return audios.
Annotations

Constructors

RequestType(int value)
const

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
final

Methods

containsAudio() bool
containsImage() bool
containsType(RequestType type) bool
containsVideo() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator +(RequestType type) RequestType
operator -(RequestType type) RequestType
operator <<(int bit) RequestType
operator ==(Object other) bool
The equality operator.
override
operator >>(int bit) RequestType
operator ^(RequestType type) RequestType
operator |(RequestType type) RequestType

Static Methods

fromTypes(List<RequestType> types) RequestType
Computes the request type from given types.

Constants

all → const RequestType
audio → const RequestType
common → const RequestType
image → const RequestType
values → const List<RequestType>
The values of RequestType.
video → const RequestType