getLatest method

Future<EntityReference> getLatest(
  1. String sdkId,
  2. String prefix
)

Implementation

Future<EntityReference> getLatest(String sdkId, String prefix) async {
	final res = await _methodChannel.invokeMethod<String>(
		'EntityReferenceApi.getLatest',
		{
			"sdkId": sdkId,
			"prefix": jsonEncode(prefix),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method getLatest");
	final parsedResJson = jsonDecode(res);
	return EntityReference.fromJSON(parsedResJson);
}