forDartType<T> method

  1. @Deprecated('Use mapToVariable or a mapFromSql method instead')
SqlType<T> forDartType<T>()

Returns the appropriate sql type for the dart type provided as the generic parameter.

Implementation

@Deprecated('Use mapToVariable or a mapFromSql method instead')
SqlType<T> forDartType<T>() {
  return types.singleWhere((t) => t is SqlType<T>) as SqlType<T>;
}