SupabaseResponse constructor
const
SupabaseResponse(})
A simulated response from Supabase. This class is designed to DRY responses when used with the SupabaseMockServer. For example:
final resp = SupabaseResponse([
await mock.serialize(MyModel(name: 'Demo 1', id: '1')),
await mock.serialize(MyModel(name: 'Demo 2', id: '2')),
]);
Implementation
const SupabaseResponse(
this.data, {
this.headers,
this.realtimeSubsequentReplies = const [],
this.realtimeSubsequentReplyDelay = const Duration(milliseconds: 30),
});