TF-1068 implement data layer save recent login username & get all login username

This commit is contained in:
Ms Thuỷ
2022-10-24 17:38:41 +07:00
committed by Dat H. Pham
parent 06ec261d05
commit 6cf86b0edf
11 changed files with 230 additions and 0 deletions
@@ -0,0 +1,13 @@
import 'package:equatable/equatable.dart';
class RecentLoginUsername with EquatableMixin {
final String username;
final DateTime creationDate;
RecentLoginUsername(this.username, this.creationDate);
factory RecentLoginUsername.now(String username) => RecentLoginUsername(username, DateTime.now());
@override
List<Object?> get props => [ username, creationDate ];
}