variableTypeCode method

String variableTypeCode([
  1. GenerationOptions options = const GenerationOptions()
])

The moor Dart type that matches the type of this column.

This is the same as dartTypeCode but without custom types.

Implementation

String variableTypeCode(
    [GenerationOptions options = const GenerationOptions()]) {
  if (isArray) {
    return 'List<${variableTypeCodeWithoutArray(options)}>';
  } else {
    return variableTypeCodeWithoutArray(options);
  }
}