beaufortDescription property

String? get beaufortDescription

Get a plain-English description of the Beaufort scale number, or null if speed is unknown.

Implementation

String? get beaufortDescription {
  const descriptions = <String>[
    'calm',
    'light air',
    'light breeze',
    'gentle breeze',
    'moderate breeze',
    'fresh breeze',
    'strong breeze',
    'near gale',
    'gale',
    'strong gale',
    'storm',
    'violent storm',
    'hurricane force',
  ];
  final b = beaufort;
  if (b == null) return null;
  return descriptions[b];
}