FlutterHttpProvider class

Available extensions

Constructors

FlutterHttpProvider({bool enableDebugLogs = false})
factory

Properties

enableDebugLogs → bool
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

canRunIsolate() → bool

Available on FlutterHttpProvider, provided by the UploadProvider extension

Permite verificar si se puede utilizar isolates para la carga. Se desactiva en web y se podría ampliar la lógica (por ejemplo, control de concurrencia).
createUploadSession({required Uint8List file, required String token, required String imagenNombre, int partSize = 1024 * 1024, required String urlStreaming, required String urlPart}) → UploadSession

Available on FlutterHttpProvider, provided by the UploadProvider extension

Crea una sesión de carga a partir del archivo y de la configuración proporcionada. La sesión se encarga de dividir el archivo, iniciar la transacción, subir cada parte y finalizar la carga.
httpAccion(String funcion, String url, bool runIsolate, String hashQuery, String coleccion, {Map<String, String>? headers, Object? body, Encoding? encoding, Uint8List? fileBytes, String? imagenNombre, int? timeOut}) → Future<Map<String, dynamic>>
Ejecuta una acción HTTP parametrizable. Se eliminó el uso de variables de instancia para evitar condiciones de carrera en escenarios concurrentes; toda la información se maneja de forma local.
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