registerUser method
Future<LoginModel>
registerUser({
- String? username,
- String? name,
- String? email,
- String? phone,
- String? address,
- required String password,
- String? role,
- String? subRole,
- String? schoolId,
- String? panel,
override
Implementation
@override
Future<LoginModel> registerUser({
String? username,
String? name,
String? email,
String? phone,
String? address,
required String password,
String? role,
String? subRole,
String? schoolId,
String? panel,
}) async {
final model = RegisterRequestModel(
name: name,
email: email,
phone: phone,
password: password,
username: username,
role: role,
subrole: subRole,
schoolId: schoolId,
panel: panel
);
final data = await iAuthRemoteRepository.registerUser(model);
return data;
}