getAdapterWithId static method

DateAdapter<AbstractDate> getAdapterWithId(
  1. String id
)

returns the adapter with the same id.

if their is no such adapter, it will return null.

Implementation

static DateAdapter getAdapterWithId(String id) {
  return _adapters.values.firstWhere((a) => a.id == id);
}