propertyNames property

List<String> get propertyNames

Names of user-visible properties on this entity.

Reserved names (__key__, __version__) are omitted. Order matches the entity's internal property list.

Implementation

List<String> get propertyNames {
  final names = <String>[];
  final callable = NativeCallable<_PropertyCallbackNative>.isolateLocal((
    Pointer<Char> namePtr,
    Pointer<Void> _,
  ) {
    names.add(namePtr.cast<Utf8>().toDartString());
  });
  try {
    ns_entity_iterate_properties(_entity, callable.nativeFunction, nullptr);
  } finally {
    callable.close();
  }
  return names;
}