find method

  1. @override
SessionData? find({
  1. required Map<String, RequiredNamespace> requiredNamespaces,
})
override

Implementation

@override
SessionData? find({
  required Map<String, RequiredNamespace> requiredNamespaces,
}) {
  _checkInitialized();
  final compatible = sessions.getAll().where((element) {
    return SignApiValidatorUtils.isSessionCompatible(
      session: element,
      requiredNamespaces: requiredNamespaces,
    );
  });

  return compatible.isNotEmpty ? compatible.first : null;
}