startSigning method

Future startSigning(
  1. BuildContext context
)

Implementation

Future startSigning(BuildContext context) async {
  final result = await beginSigning();
  // Null => Sucess
  // NonNull => Error
  if (isNonNull(result)) {
    showSnackBar(result, context);
  } else {
    if (isNull(onSuccessCallbackBeInvokedByChild(
        currUser(), context, serveStore()))) {
      onSuccess(currUser(), context, serveStore());
    } else {
      final f = onSuccessCallbackBeInvokedByChild(
          currUser(), context, serveStore());
      f();
    }
  }
}