INNER CODE UNIT · Dart

AuthorizationEvent

transistorsoft/flutter_background_geolocation · lib/models/authorization_event.dart:5

class AuthorizationEvent {
  /// HTTP Status returned from your [Authorization.refreshUrl] (or `0` if the HTTP request failed).
  late int status;

  /// `true` when an authorization request to [Authorization.refreshUrl] was successful.
  ///
  late bool success;

  /// When [success] `false`, this is the error message from [Authorization.refreshUrl].
  String? error;

  /// when [success] `true`, this is the data returned from [Authorization.refreshUrl].
  Map? response;

  AuthorizationEvent(Map data) {
    status = _ensureInt(data['status'])!;
    success = _ensureBool(data['success'])!;
    error = data['error'];

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…