HardwareException.unsupported constructor

HardwareException.unsupported(
  1. String feature
)

Creates a specific unsupported exception subclass.

Implementation

factory HardwareException.unsupported(String feature) {
  return HardwareUnsupportedException(
    message: '$feature is not supported on this platform.',
  );
}