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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user