toFlutter method

List<DeviceOrientation> toFlutter()

Implementation

List<DeviceOrientation> toFlutter() {
  return map((e) => DeviceOrientation.values
          .singleWhere((element) => element.name == e.name))
      .whereType<DeviceOrientation>()
      .toList();
}