cast<U> method

Key<U> cast<U>()

Converts Key<dynamic> to Key<U>.

Implementation

Key<U> cast<U>() => Key<U>(parent!, type, id as U?);