Remove Dispose
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This commit is contained in:
parent
9eac097e6b
commit
1516b30161
|
@ -10,13 +10,6 @@ class ProfileListState extends ChangeNotifier {
|
||||||
List<ProfileInfoState> _profiles = [];
|
List<ProfileInfoState> _profiles = [];
|
||||||
int get num => _profiles.length;
|
int get num => _profiles.length;
|
||||||
|
|
||||||
@override
|
|
||||||
void dispose() {
|
|
||||||
EnvironmentConfig.debugLog("disposal of profile infostate called...");
|
|
||||||
EnvironmentConfig.debugLog(StackTrace.current.toString());
|
|
||||||
super.dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
void add(String onion, String name, String picture, String defaultPicture, String contactsJson, String serverJson, bool online, bool autostart, bool encrypted) {
|
void add(String onion, String name, String picture, String defaultPicture, String contactsJson, String serverJson, bool online, bool autostart, bool encrypted) {
|
||||||
var idx = _profiles.indexWhere((element) => element.onion == onion);
|
var idx = _profiles.indexWhere((element) => element.onion == onion);
|
||||||
if (idx == -1) {
|
if (idx == -1) {
|
||||||
|
|
Loading…
Reference in New Issue