isDouble static method

bool isDouble(
  1. dynamic v
)

Implementation

static bool isDouble(v) {
  if (v == null) return true;
  if (v is num) return true;
  if (v is String) return double.tryParse(v) != null;
  return false;
}