accepts method

bool accepts(
  1. Object? data
)

Whether data has the selector's local type.

Implementation

bool accepts(Object? data) => data is T;