changeOrientation method

void changeOrientation({
  1. bool toLandscape = false,
})

Implementation

void changeOrientation({bool toLandscape= false}){
  if(toLandscape){
    emit(Orientation.landscape);
  }
}