addAttachment method

Future<TestAttachment> addAttachment(
  1. String path
)

Implementation

Future<TestAttachment> addAttachment(String path) async {
  final url = '/add_attachment_to_result/$id';
  final response = await FlutterTestRail.instance.client
      .request(url, RequestMethod.postMultipart, params: {'filePath': path});
  return TestAttachment.fromJson(response!);
}