isSubType<Super, Child> static method

bool isSubType<Super, Child>()

Implementation

static bool isSubType<Super, Child>() =>
    _TypeHelper<Child>() is _TypeHelper<Super?> ||
    _TypeHelper<Child>() is _TypeHelper<Super> ||
    _TypeHelper<Child>() is _TypeHelper<FutureOr<Super>> ||
    _TypeHelper<Child>() is _TypeHelper<FutureOr<Super?>>;