paste abstract method

Future<Either<RequestError, Uri>> paste({
  1. required String pasteText,
  2. PasteOptions? options,
})

Publishes a paste in Pastebin. By default only the text (pasteText) of the paste to publish is required, which means that the paste will not have a title, author or expiration date. These pastes are also public and in the text format.

To provide values for these settings, pass an instance of PasteOptions in the options field.

Implementation

Future<Either<RequestError, Uri>> paste({
  required final String pasteText,
  final PasteOptions? options,
});