addItem method
Implementation
addItem(BuildContext context) {
if (contextList.isEmpty) {
contextList = [];
}
if (contextList.any((element) => element == context) == false) {
contextList.insert(contextList.length, context);
} else {
contextList
.removeAt(contextList.indexWhere((element) => element == context));
contextList.insert(contextList.length, context);
}
}