answer method
Implementation
Future<bool> answer(dynamic v) async {
bool ok = true;
touched = true;
dirty = true;
if (value != v) {
// remember old value
//var oldValue = value;
value = v;
// remember old geoCode
//var oldGeocode = geocode;
// set geocode
geocode = Payload(
latitude: System().currentLocation?.latitude,
longitude: System().currentLocation?.longitude,
altitude: System().currentLocation?.altitude,
epoch: DateTime.now().millisecondsSinceEpoch,
user: System.currentApp?.user.claim('key'),
username: System.currentApp?.user.claim('name'));
// save the value
//ok = await save();
// save failed?
// if (!ok) {
// value = oldValue;
// geocode = oldGeocode;
// dirty = false;
// }
// save succeeded. set dirty
//else {
dirty = true;
//}
}
return ok;
}