static bool isInstance<T>(Object? value, T instance) { return value != null && value.runtimeType == instance.runtimeType; }