windDir2icon function

Widget windDir2icon(
  1. WindDirection? wd
)

Implementation

Widget windDir2icon(WindDirection? wd) => wd != null
    ? WindIcon.fromString(
        'towards_${windDir2string(wd)!.toLowerCase().replaceAll('o', 'e')}',
        fallback: WindIcon.from_ne)
    : WindIcon(
        degree: 4,
      );