orientationById function

ScreenOrientation? orientationById(
  1. String id
)

The orientation id names, or null for anything unknown.

Implementation

ScreenOrientation? orientationById(String id) =>
    ScreenOrientation.values.where((o) => o.name == id).firstOrNull;