orientationValue property

int? orientationValue

Representation of orientation to pass to platform code.

Implementation

int? get orientationValue => orientation == null
    ? null
    : orientation == Orientation.portrait
        ? 0
        : 1;