real property

Codec<double> real
final

Binary floating-point values with explicit SQL real intent on JavaScript.

Implementation

static final real = Codec<double>(
  'real',
  (v) => v is String ? double.parse(v) : (v as num).toDouble(),
  (v) =>
      const bool.fromEnvironment('dart.library.js_interop') ? SqlReal(v) : v,
);