DataSourceType enum Null safety

The way in which the video was originally loaded.

This has nothing to do with the video's file type. It's just the place from which the video is fetched from.


asset → const DataSourceType

The video was included in the app's asset files.

const DataSourceType(0)
contentUri → const DataSourceType

The video is available via contentUri. Android only.

const DataSourceType(3)
file → const DataSourceType

The video was loaded off of the local filesystem.

const DataSourceType(2)
network → const DataSourceType

The video was downloaded from the internet.

const DataSourceType(1)
values → const List<DataSourceType>

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

const List<DataSourceType>


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

The integer index of this enum.

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


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


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