Skip to content

Commit

Permalink
example of injectable generation
Browse files Browse the repository at this point in the history
  • Loading branch information
SandroMaglione committed Aug 4, 2022
1 parent 06bad43 commit cdc5d19
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/app/repository/auth_repository.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
abstract class AuthRepository {
Future<String> signIn();
}
11 changes: 11 additions & 0 deletions lib/app/services/supabase_auth_repository.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import 'package:flutter_supabase_complete/app/repository/auth_repository.dart';
import 'package:injectable/injectable.dart';

@Injectable(as: AuthRepository)
class SupabaseAuthRepository implements AuthRepository {
@override
Future<String> signIn() {
// TODO: implement signIn
throw UnimplementedError();
}
}

0 comments on commit cdc5d19

Please sign in to comment.