2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-12 02:05:29 +00:00

More linting work

This commit is contained in:
Oliver
2021-09-28 20:24:55 +10:00
parent c1152ee286
commit ad0cc36540
50 changed files with 904 additions and 907 deletions

View File

@ -2,8 +2,8 @@
/*
* Class for InvenTree user / login details
*/
import 'package:sembast/sembast.dart';
import 'preferences.dart';
import "package:sembast/sembast.dart";
import "preferences.dart";
class UserProfile {
@ -38,10 +38,10 @@ class UserProfile {
factory UserProfile.fromJson(int key, Map<String, dynamic> json, bool isSelected) => UserProfile(
key: key,
name: json['name'] as String,
server: json['server'] as String,
username: json['username'] as String,
password: json['password'] as String,
name: json["name"] as String,
server: json["server"] as String,
username: json["username"] as String,
password: json["password"] as String,
selected: isSelected,
);
@ -70,7 +70,7 @@ class UserProfileDBManager {
final profiles = await store.find(await _db, finder: finder);
return profiles.length > 0;
return profiles.isNotEmpty;
}
Future<void> addProfile(UserProfile profile) async {