clone method Null safety
Executed when your middleware is not a singleton
You must create your own clone function.
Implementation
Middleware<T> clone() => throw UnsupportedError('This middleware is a singleton');
Executed when your middleware is not a singleton
You must create your own clone function.
Middleware<T> clone() => throw UnsupportedError('This middleware is a singleton');