cast<T> method Null safety

Route<T> cast<T>()

Implementation

Route<T> cast<T>() => this as Route<T>;