registerAccountImpl static method
Registers the given impl
as an AccountI implementation.
Implementation
static void registerAccountImpl(AccountImpl impl) {
_ensureInit();
if (_accountImpls.any((element) => element.typeUrl == impl.typeUrl)) {
throw Exception(
'${impl.typeUrl} has an implementation already registered',
);
}
_accountImpls.add(impl);
}