castValueByColumnType method
Cast the value according to the column type.
Implementation
@override
dynamic castValueByColumnType(dynamic value, PlutoColumn column) {
if (column.type is PlutoColumnTypeWithNumberFormat) {
return (column.type as PlutoColumnTypeWithNumberFormat)
.toNumber(column.type.applyFormat(value));
}
return value;
}