attach<T extends Auth<AuthKeys>> static method

void attach<T extends Auth<AuthKeys>>(
  1. Authorizer<T> authorizer
)

Implementation

static void attach<T extends Auth>(Authorizer<T> authorizer) {
  final prev = _i;
  if (prev != null && !identical(prev, authorizer)) {
    try {
      prev.dispose();
    } catch (_) {}
  }
  _i = authorizer;
}