getDisplayRuleByName function
Retrieve the display rule with a given name
.
Requires that loadMapsIndoors has successfully executed.
Implementation
Future<MPDisplayRule?> getDisplayRuleByName(String name) async {
final exists = await MapsindoorsPlatform.instance.displayRuleNameExists(name);
if (exists == true) {
return MapsindoorsPlatform.instance.createDisplayRuleWithName(name);
} else {
return null;
}
}