clone method

Composer<T> clone()

Clones an instance

Implementation

Composer<T> clone() {
  final composer = Composer<T>().._middlewares = [..._middlewares];

  return composer;
}