deviceTypeOf static method

DeviceType? deviceTypeOf(
  1. BuildContext context, {
  2. bool listen = true,
})

Invokes of method and returns device type

Implementation

static DeviceType? deviceTypeOf(BuildContext context, {bool listen = true}) =>
    of(context, listen: listen)?.deviceType;