toSql method

  1. @override
int toSql(
  1. T value
)
override

Map a value from an object in Dart into something that will be understood by the database.

Implementation

@override
int toSql(T value) {
  return value.index;
}