getAuthentication<T extends Auth> method

T? getAuthentication<T extends Auth>(
  1. String name
)

Implementation

T? getAuthentication<T extends Auth>(String name) {
  final authentication = _authentications[name];
  return authentication is T ? authentication : null;
}