loginAction method

dynamic loginAction(
  1. BuildContext context, {
  2. dynamic action()?,
  3. String? googleUrl,
  4. bool page = false,
})

Implementation

loginAction(BuildContext context,
    {Function()? action, String? googleUrl, bool page = false}) async {
  if (user != null) {
    await action?.call();
  } else {
    await LoginDialog.show(
      context,
    );
  }
}