getFromSource<T> method

T? getFromSource<T>(
  1. Type type
)

Implementation

T? getFromSource<T>(Type type) {
  if (type == source.runtimeType) {
    return source as T;
  } else {
    return null;
  }
}