init method

  1. @override
FutureOr<bool> init([
  1. bool inInterface = true
])

Init Service

Implementation

@override
FutureOr<bool> init([bool inInterface = true]) {
  if (!context.hasService<Crypto>()) {
    throw UnsupportedError("Authorization service not"
        " supported without CryptoService");
  }

  if (!context.hasService<DataAccess>()) {
    throw UnsupportedError("Authorization service not"
        " supported without CryptoService");
  }
  return initService();
}