Repository class

Mixed-in types
Implementers

Constructors

Repository.new(String endpoint, {TipoApi tipoApi = TipoApi.geral, String? tabela, bool isLista = false, bool carregarInclusao = false, String campoDescricao = "descricao"})

Properties

campoDescricao String
final
carregarInclusao bool
final
cliente ↔ Dio
getter/setter pairinherited
endpoint String
final
hashCode int
The hash code for this object.
no setterinherited
isLista bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tabela String?
final
tipoApi TipoApi
final
urlapi String
no setter

Methods

delete(int id) Future<bool>
gerarPDFListagem({List<FiltroBase>? filtros}) Future<Uint8List>
getAll({List<FiltroBase>? filtros}) Future<List>
getChaves({Map<String, dynamic>? dados, List<FiltroBase>? filtros, String? tabela, int? tipo, bool isLista = false, String campodescricao = "descricao"}) Map<String, dynamic>
inherited
getID(int id) Future<Map<String, dynamic>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save(Map<String, dynamic> data) Future<bool>
toString() String
A string representation of this object.
inherited

Operators

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