add method
Implementation
add(LoginHistory history) async {
list.removeWhere((element) =>
element.apiUrl == history.apiUrl &&
element.username == history.username);
list.insert(0, history);
await save();
}
add(LoginHistory history) async {
list.removeWhere((element) =>
element.apiUrl == history.apiUrl &&
element.username == history.username);
list.insert(0, history);
await save();
}