$hasTraitOf static method

bool $hasTraitOf(
  1. Type t,
  2. Type trait
)

Implementation

static bool $hasTraitOf(Type t, Type trait) => $traitsOf(t).contains(trait);