post method

Future<Uint8List> post(
  1. Uint8List requestData
)

Method to make post request. It's called from rust

Implementation

Future<Uint8List> post(Uint8List requestData) async {
  try {
    return await _post(
      endpoint: settings.endpoint,
      headers: {
        'Content-Type': 'application/x-protobuf',
      },
      dataBytes: requestData,
    );
  } catch (error) {
    throw ErrorCode.Network;
  }
}