Supabase class
Supabase instance.
It must be initialized before used, otherwise an error is thrown.
await Supabase.initialize(...)
Use it:
final instance = Supabase.instance;
See also:
SupabaseAuth
Properties
- client ↔ SupabaseClient
-
The supabase client for this instance
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → Future< void> - Dispose the instance to free up resources.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
initialize(
{required String url, required String anonKey, Map< String, String> ? headers, Client? httpClient, RealtimeClientOptions realtimeClientOptions = const RealtimeClientOptions(), PostgrestClientOptions postgrestOptions = const PostgrestClientOptions(), StorageClientOptions storageOptions = const StorageClientOptions(), FlutterAuthClientOptions authOptions = const FlutterAuthClientOptions(), Future<String> accessToken()?, bool? debug}) → Future<Supabase> - Initialize the current supabase instance