listFlags method
Implementation
List<Flag> listFlags() {
final resultPtr = _bindings.list_flags(_engine);
final result = _pointerToString(resultPtr);
_bindings.destroy_string(resultPtr);
final response =
FlagListResponse.fromJson(jsonDecode(result) as Map<String, dynamic>);
if (response.status != Status.success) {
throw EvaluationError('Failed to list flags: ${response.errorMessage}');
}
return response.toResult().result!;
}