karee.core library Null safety

Karee lib is a Dart library

To take full advantage of Karee, you should know what it offers to you

Karee library a dart lib very useful to

  • Organize your project's files and folders
  • Manage your files and classes names
  • Manage your application's navigation with custom constants
  • Manage all your stateless and stateful screens with names
  • Manage all your controllers
  • Organize your application routes with various structure

Classes

ErrorContactAddress
When you are going to release your application, you need to turn your application profile to production and setup the error contact. You can also customize your application general error screen. And if you need you access to your error contact address use the static variable
KareeConstants
Class that defines all managed constants used in karee.
KareeModuleLoader
Class use to load module in Root application
KareeRoutableModule
Interface implemented by each module that share the same Router with the root application
Observer<T>
Observer
Of<T>
This basic implementation of Observable, this offer a lite observable. Observer subscribes to an Observable. Then that observer reacts to whatever item the Observable emits.
PackageManager
This class is used to know whether Root is launched as application or module

Properties

errorSolution Map<KareeErrorCode, Widget Function(BuildContext ct, List env)>
read / write

Functions

loadAppConfig([String package = '']) Future<void>
Function used to read application.yaml from resources/config directory.
readConfig(String variable) → dynamic
Function used to read configuration variable from application config in memory.
subscribeController(dynamic controller) → void
subscribeController: Function used by application to subscribe their controllers in core library.
subscribeScreen(Map<Symbol, dynamic> screen) → void
subscribeScreen Function: Function use by application to subscribes their screens in core library

Enums

ApplicationKind
This enumeration is used to know which kind of application will be run, MaterialApp or CupertinoApp
KareeApplicationType
KareeApplicationType used to know whether the running instance of Karee's instance is application or module
KareeErrorCode
KareeErrorCode is an enumeration that define all keys associated with a specific widget displayed in Error Screen in dev mode.
KareeInstanceProfile
KareeInstanceProfile enumeration used to set the profile of the application

Exceptions / Errors

BadUseOfRouterWidgetException
BadUseOfRouterWidgetException: Exception thrown when a inappropriate RouteMode is used with Internal Routing.
NoActionFoundError
NoActionFoundError: Exception thrown when an unknown action is mapped to a route.
NoRouteFoundError
NoRouteFoundError: Exception thrown when the application send an unknow route (path) in KareeRouter.
NotManageableWidgetException
NotManagableWidgetException: Exception thrown when the application tries to send in navigation an unmanagable Screen to in KareeRouter.
NotRoutableWidgetException
NotRoutableWidgetException: Exception thrown when trying to inject a non-routable widget during internal routing.