of static method

AlterDevice of(
  1. BuildContext context
)

Retrieves the ambient AlterDevice, defaulting to AlterDevice.pc if none is found.

Implementation

static AlterDevice of(BuildContext context) {
  return maybeOf(context) ?? AlterDevice.pc;
}