getAuthentication<T extends Authentication> method

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

Implementation

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