DartDeskApp.withDataSource constructor

const DartDeskApp.withDataSource({
  1. Key? key,
  2. required DataSource dataSource,
  3. required VoidCallback onSignOut,
  4. required DartDeskConfig config,
  5. 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;