Skip to main content

Initializing

Dart

You can initialize a new Supabase client using the SupabaseClient() method.

The Supabase client is your entrypoint to the rest of the Supabase functionality and is the easiest way to interact with everything we offer within the Supabase ecosystem.

Flutter

For supabase_flutter, you will be using the static initialize() method on Supabase class.

Examples

Dart SupabaseClient()

final supabase = SupabaseClient('https://xyzcompany.supabase.co', 'public-anon-key');

Flutter initialize()

main.dart
Future<void> main() async {
await Supabase.initialize(url: 'https://xyzcompany.supabase.co', anonKey: 'public-anon-key');
runApp(MyApp());
}