ResponseWithInternalServerError extension

on

Methods

internalServerError({Object? data, Object? exception}) Future<void>
use data => if you want to add more details to the client side use it use exception => if you want to display the exception BUT ! it will be sent to client side in debug mode only