maybeOf static method
Retrieves the ambient AlterDevice if one is provided in the widget hierarchy.
Implementation
static AlterDevice? maybeOf(BuildContext context) {
return context.dependOnInheritedWidgetOfExactType<AlterDeviceScope>()?.device;
}
Retrieves the ambient AlterDevice if one is provided in the widget hierarchy.
static AlterDevice? maybeOf(BuildContext context) {
return context.dependOnInheritedWidgetOfExactType<AlterDeviceScope>()?.device;
}