properties method
override
Get the supported properties of this sensor.
var props = await myMovementSensor.properties();
For more information, see Movement Sensor component.
Implementation
@override
Future<Properties> properties({Map<String, dynamic>? extra}) async {
final request = GetPropertiesRequest()
..name = name
..extra = extra?.toStruct() ?? Struct();
return await client.getProperties(request);
}