builder method

  1. @override
Widget builder(
  1. BuildContext context,
  2. SnapState<T> snap,
  3. ReactiveModel<T> rm
)
override

Implementation

@override
Widget builder(context, snap, rm) {
  final inj = rm as InjectedAuth;
  Widget getWidget() => inj.isSigned ? onSigned() : onUnsigned();
  if (snap.isWaiting) {
    if (onInitialWaiting != null && _map['onInitialWaiting'] == true) {
      _map['onInitialWaiting'] = false;
      return onInitialWaiting!();
    }
    return onWaiting?.call() ?? getWidget();
  }
  // onInitialWaiting = null;
  return getWidget();
}