NSKey class
A database entity key. Native memory is freed automatically on GC.
- Implemented types
Constructors
- NSKey.fromInteger(String tableName, int id)
-
Back-compat aliases.
factory
- NSKey.fromName(String tableName, String name)
-
factory
-
NSKey.fromNative(Pointer<
ns_key_t> native) -
Clone a native key pointer supplied by a short-lived FFI callback.
factory
- NSKey.integer(String tableName, int id)
-
factory
- NSKey.name(String tableName, String name)
-
factory
-
NSKey.owned(Pointer<
ns_key_t> native) -
Wraps an owned native key pointer (e.g. from
ns_entity_get_key).factory
Properties
-
handle
→ Pointer<
ns_key_t> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
Integer id when isInteger, otherwise 0.
no setter
- isInteger → bool
-
no setter
- isName → bool
-
no setter
- name → String
-
String name when isName, otherwise empty.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- table → String
-
Table name for this key.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited