-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add firebase auth, and anonymous signin
- Loading branch information
1 parent
ebedd0f
commit 84920a8
Showing
18 changed files
with
509 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ export 'json_map.dart'; | |
export 'position.dart'; | ||
export 'sudoku.dart'; | ||
export 'ticker.dart'; | ||
export 'user.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import 'package:equatable/equatable.dart'; | ||
|
||
/// {@template user} | ||
/// User model. | ||
/// | ||
/// [User.unauthenticated] represents an unauthenticated user. | ||
/// {@endtemplate} | ||
class User extends Equatable { | ||
/// {@macro user} | ||
const User({ | ||
required this.id, | ||
}); | ||
|
||
/// The current user's id. | ||
final String id; | ||
|
||
/// Represents an unauthenticated user. | ||
static const unauthenticated = User(id: ''); | ||
|
||
/// Convenience getter to determine whether the current | ||
/// user is unauthenticated. | ||
bool get isUnauthenticated => this == User.unauthenticated; | ||
|
||
/// Convenience getter to determine whether the current | ||
/// user is authenticated. | ||
bool get isAuthenticated => this != User.unauthenticated; | ||
|
||
@override | ||
List<Object?> get props => [id]; | ||
} |
Oops, something went wrong.