DartDeskApp.withDataSource constructor
const
DartDeskApp.withDataSource({
- Key? key,
- required DataSource dataSource,
- required VoidCallback onSignOut,
- required DartDeskConfig config,
- ShadThemeData? theme,
Creates a DartDeskApp with an external data source and auth.
Use this when your app handles authentication externally (Firebase, Clerk, Auth0, etc.) and provides its own DataSource.
Implementation
const DartDeskApp.withDataSource({
super.key,
required DataSource this.dataSource,
required VoidCallback this.onSignOut,
required this.config,
this.theme,
}) : serverUrl = null,
apiKey = null;