getField method

Future getField(
  1. String field
)

Implementation

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