OData class

Uses HTTPS by default. You can use HTTP by setting useHttp to true

Constructors

OData(String _baseUrl, {bool useHttp = false})

Properties

baseUrl String
latefinal
bearer String
no getter
no getter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
useHttp bool
If enabled, uses HTTP instead of HTTPS.
final

Methods

collection<T>(String path, {CollectionQueryOptions<T> options = const CollectionQueryOptions(), bool tryUseAuth = true}) CollectionQuery<T>
tryUseAuth will attach Authorization information to the Headers if possible
get<T>(String path) Future<T?>
getList<T>(String path) Future<BuiltList<T?>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setBearer(String token) → void
setCookie(String cookie) → void
single<T>(String path, {QueryOptions<T> options = const QueryOptions(), bool tryUseAuth = true}) Query<T>
tryUseAuth will attach Authorization information to the Headers if possible
toString() String
A string representation of this object.
inherited

Operators

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