isSubtype<S, T> method
Implementation
bool isSubtype<S, T>() {
final isSASubtypeOfT = <S>[] is List<T>;
final isTASubtypeOfS = <T>[] is List<S>;
return isSASubtypeOfT && !isTASubtypeOfS;
}
bool isSubtype<S, T>() {
final isSASubtypeOfT = <S>[] is List<T>;
final isTASubtypeOfS = <T>[] is List<S>;
return isSASubtypeOfT && !isTASubtypeOfS;
}