MetodoMuestreoService class

Constructors

MetodoMuestreoService()

Properties

apiUrl String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tokenManager TokenManager
final

Methods

checkAndSyncPending() Future<void>
  • Cuando recobra conexión, revisa la tabla de pendientes y los sube uno a uno.
  • noSuchMethod(Invocation invocation) → dynamic
    Invoked when a nonexistent method or property is accessed.
    inherited
    saveMetodoMuestreo(Map<String, dynamic> data, BuildContext context) Future<void>
  • Intentar subir a API primero; si falla, guardar local y en pendientes. Si sube correctamente, guardar solo local.
  • toString() String
    A string representation of this object.
    inherited
    upload(Map<String, dynamic> data) Future<bool>
  • Sube data a la API: si viene con 'id' hace PUT a /{id}, si no hace POST.
  • Operators

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