mirror of
https://github.com/Iconica-Development/flutter_profile.git
synced 2025-05-20 01:33:44 +02:00
21 lines
466 B
Dart
21 lines
466 B
Dart
|
import 'package:profile/profile.dart';
|
||
|
|
||
|
class ProfileService {
|
||
|
const ProfileService();
|
||
|
|
||
|
deleteProfile() {}
|
||
|
|
||
|
editProfile<T extends ProfileData>(User user, String key, String value) {
|
||
|
if (user.profileData != null) {
|
||
|
var map = user.profileData!.toMap();
|
||
|
if (map.containsKey(key)) {
|
||
|
map[key] = value;
|
||
|
var profile = user.profileData!.create();
|
||
|
user.profileData = profile.fromMap(map);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
uploadImage() {}
|
||
|
}
|