clone method Null safety

Middleware<T> clone()

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');