callMethod function

Widget callMethod(
  1. Widget realApp
)

Implementation

Widget callMethod(Widget realApp) {
  if (Data.myData.get('PIN') != null) {
    return PinCodeScreen(
      isFirsttime: false,
      pinText: 'Enter your PIN',
      child: realApp,
    );
  } else if (Data.myData.get('Finger') != null) {
    return FingerPrint(
      child: realApp,
    );
  } else {
    return Pattern(
      state: const [2],
      dimension: Data.myData.get('dim'),
      child: realApp,
    );
  }
}