LocationQueryRepository class
Repository to manage location objects.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
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
Static Methods
-
countAll(
) → int - Counts all locations in database.
-
create(
LocationQuery location) → Future< void> - When location is created also embedded objects are persisted and created.
-
delete(
int id) → dynamic - Sync delete call (should not be used in context with async create).
-
get(
int id) → LocationQuery? - Sync get call (should not be used in context with async create).
-
getAll(
) → List< LocationQuery> - Returns list of all locations.
-
getByIds(
List< int> ids) → List<LocationQuery?> - Returns list of locations by ids.
-
getByLatLng(
double latitude, double longitude) → LocationQuery? - Returns location by latitude and longitude.
-
getByLatLngAsync(
double latitude, double longitude) → Future< LocationQuery?> - Returns location by latitude and longitude.
-
getByQueries(
List< String> queries) → List<LocationQuery> - Returns list of locations by queries.
-
getByQuery(
String query) → LocationQuery? - Returns location by query.
-
getByQueryAsync(
String query) → Future< LocationQuery?> - Returns location by query.
-
init(
{LocationQuery? location, IsarLink< LocationQuery> ? locationLink, bool withPut = true}) → Future<void> - Creates, updates and persists location and its embedded objects - has to be used in IsarDB.isar.writeTxt transaction.