prepareValue method

dynamic prepareValue(
  1. dynamic value
)

Implementation

dynamic prepareValue(value) {
  if (value != null) {
    if (value is int) {
      return _prepareInt(value);
    } else if (value is double) {
      return _prepareDouble(value);
    } else if (value is DateTime) {
      return _prepareDateTime(value);
    } else if (value is bool) {
      return _prepareBool(value);
    } else if (value is List<int>) {
      return _prepareList(value);
    } else if (value is Blob) {
      return _prepareBlob(value);
    } else {
      return _prepareString(value);
    }
  }
  return value;
}