postItem method

Future<T?> postItem({
  1. bool autoAuthorize = true,
  2. String tag = '',
  3. List<String>? loadReference,
  4. String function = '',
})

Implementation

Future<T?> postItem({
  bool autoAuthorize = true,
  String tag = '',
  List<String>? loadReference,
  String function = '',
}) async {
  var data = await postItems(autoAuthorize: autoAuthorize, tag: tag, loadReference: loadReference, function: function);
  if (data.isEmpty) {
    return null;
  }
  return data[0];
}