UnicoCheck constructor Null safety
- {required Object context,
- required UnicoConfig config}
Context
é a classe que você irá implementar a interface que você gostaria
de utilizar
Implementation
UnicoCheck({required Object context, required UnicoConfig config})
: _config = config {
// if (context is IAcessoBioLiveness) {
// liveness = LivenessFunctions(
// channel: _channel,
// config: _config,
// callbacks: context,
// );
// }
if (context is IAcessoBioDocument) {
document = DocumentFunctions(
channel: _channel,
config: _config,
callbacks: context,
);
}
if (context is IAcessoBioAuthenticate) {
authenticate = AuthenticateFunctions(
channel: _channel,
config: _config,
callbacks: context,
);
}
if (context is IAcessoBioCamera) {
camera = CameraFunctions(
channel: _channel,
config: _config,
callbacks: context,
);
}
}