fromBool static method

PaperState fromBool(
  1. bool isPaperOut
)

Creates PaperState from boolean value

Implementation

static PaperState fromBool(bool isPaperOut) {
  return isPaperOut ? PaperState.out : PaperState.present;
}