AuthManager<T> constructor

AuthManager<T>({
  1. required T parser(
    1. Map<String, dynamic>
    ),
  2. required Map<String, dynamic> serializer(
    1. T user
    ),
  3. Future<T?> getUserFromServer(
    1. T? current
    )?,
})

Implementation

AuthManager({
  required this.parser,
  required this.serializer,
  this.getUserFromServer,
}) {
  _init();
}