PlatformMediaRepository class

Repository to manage media objects.

Constructors

PlatformMediaRepository()

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

create(PlatformMedia media) Future<void>
Creates media.
createAll(List<PlatformMedia> media) Future<void>
Creates multiple media.
delete(String id) → dynamic
Sync delete call (should not be used in context with async create).
get(String id) PlatformMedia?
Sync get call (should not be used in context with async create).
getAll() List<PlatformMedia>
Sync getAll call (should not be used in context with async create).
getAllByIdsContains(List<String> ids) Future<List<PlatformMedia>>
Returns list of media filtered by ids.
getByAuthorId(String authorId) List<PlatformMedia>
Returns list of media filtered by author id.
getByIds(List<String> ids) List<PlatformMedia?>
Returns list of media filtered by ids.
getByParentId(String parentId) List<PlatformMedia>
Returns list of media filtered by parent id.
getByParentIdAsync(String parentId) Future<List<PlatformMedia>>
Returns list of media filtered by parent id.
init(PlatformMedia media) Future<void>
Creates, updates and persists media - has to be used in IsarDB.isar.writeTxt transaction.
initAll({List<PlatformMedia>? media, IsarLinks<PlatformMedia>? mediaLink}) Future<void>
Creates, updates and persists all of media - has to be used in IsarDB.isar.writeTxt transaction.