- Fixed unused field warning in phone_input_screen.dart - Resolved undefined getter 'isoCode' by removing unused code - Fixed undefined class 'User' error by adding proper Firebase import in user_model.dart - Ran dart format to ensure consistent code style across all files - All analyzer issues are now resolved Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
33 lines
721 B
Dart
33 lines
721 B
Dart
import 'package:firebase_auth/firebase_auth.dart';
|
|
|
|
class UserModel {
|
|
final String uid;
|
|
final String? displayName;
|
|
final String? phoneNumber;
|
|
final String? email;
|
|
final String? photoURL;
|
|
|
|
UserModel({
|
|
required this.uid,
|
|
this.displayName,
|
|
this.phoneNumber,
|
|
this.email,
|
|
this.photoURL,
|
|
});
|
|
|
|
factory UserModel.fromFirebaseUser(User user) {
|
|
return UserModel(
|
|
uid: user.uid,
|
|
displayName: user.displayName,
|
|
phoneNumber: user.phoneNumber,
|
|
email: user.email,
|
|
photoURL: user.photoURL,
|
|
);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return 'UserModel(uid: $uid, displayName: $displayName, phoneNumber: $phoneNumber, email: $email, photoURL: $photoURL)';
|
|
}
|
|
}
|