getLastDataAge method
Implementation
Future<dynamic> getLastDataAge(
String field,
) async {
options ??= {};
if (apiKey != null) {
options!['api_key'] = apiKey;
}
var path = 'channels/$id/fields/$field/last.$fmt';
Uri endpoint = Uri.https(serverUrl, path, options);
var response = await http.get(endpoint);
return _fmt(response);
}