$traitsOf static method

Set<Type> $traitsOf(
  1. Type t
)

Implementation

static Set<Type> $traitsOf(Type t) => Curse.clazz(t)
    .$class
    .superinterfaces
    .where((i) => i.superinterfaces.any((j) => j.reflectedType == Trait))
    .map((i) => i.reflectedType)
    .toSet();