HTML method

Future HTML(
  1. String htmlString
)

Implementation

Future HTML(String htmlString) async {
  if(htmlString!=''){
    res?.statusCode = HttpStatus.ok;
    res?.headers.contentType =  ContentType.html;

    res?.write(htmlString);
    await res?.close();
  }else{
    throw CustomException('[ Error ] String is empty').showError();
  }
}