Returns true if T accepts a value of type.
true
T
type
static bool accepts<T>(Type type) { return T == type || T == Object || T == dynamic; }