ChalonaAndroidApp<T extends ChalonaSession> constructor

ChalonaAndroidApp<T extends ChalonaSession>({
  1. required String name,
  2. required String title,
  3. required String host,
  4. required T session,
  5. required Map<String, Widget Function(BuildContext)> routes,
  6. Widget splash(
    1. BuildContext context
    )?,
  7. Widget login(
    1. BuildContext context
    )?,
  8. Widget onErrorLoading(
    1. BuildContext context
    )?,
  9. void onSuccess(
    1. BuildContext context,
    2. String msg
    )?,
  10. void onError(
    1. BuildContext context,
    2. String msg
    )?,
})

Implementation

ChalonaAndroidApp({
  required String name,
  required String title,
  required String host,
  required super.session,
  required super.routes,
  super.splash,
  super.login,
  super.onErrorLoading,
  super.onSuccess,
  super.onError,
}) : super(
        name: name,
        title: title,
        host: host,
        wsConnect: () => ChalonaSocketIOConnect(host),
      );