UserBlock constructor

UserBlock({
  1. required UserServiceClient grpcUserClient,
  2. required Authorize authorize,
  3. required String? jwtPublicKey,
  4. required SharedPreferences sharedPreferences,
  5. bool? debug,
  6. String? encryptionKey,
  7. Function? onLogin,
  8. Function? onLogout,
  9. bool? recordActive,
})

Implementation

UserBlock({
  required dart_blocks.UserServiceClient grpcUserClient,
  required Authorize authorize,
  required String? jwtPublicKey,
  required this.sharedPreferences,
  this.debug,
  String? encryptionKey,
  Function? onLogin,
  Function? onLogout,
  bool? recordActive,
}) {
  _grpcUserClient = grpcUserClient;
  _authorize = authorize;
  _encryptionKey = encryptionKey;
  _jwtPublicKey = jwtPublicKey;
  _secureStorage = FlutterSecureStorage();
}