getPurpose static method
Get a purpose by its id.
Implementation
static Future<Purpose?> getPurpose(String purposeId) async {
final dynamic result = await _channel.invokeMethod("getPurpose", {"purposeId": purposeId});
if (result == null) return null;
return Purpose.fromJson(result);
}