NCMBObject class Null safety

NCMBObject is a class for DataStore in NCMB.

Implementers

Constructors

NCMBObject(String _name, {Map fields = const {}})
Initializing NCMBObjct. Required class name.

Properties

fields → dynamic
Accessor methods. We can get fields data by obj.fields
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
name → dynamic
Accessor methods. We can get class name by obj.name
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

add(String name, Object value) → void
addUnique(String name, Object value) → void
delete() Future<bool>
fetch() Future<void>
Fetch a data from DataStore in NCMB. After fetched data, set to own fields from data.
get(String name) Object
getString(String name) String
hasKey(String name) bool
increment(String name, {int number = 1}) → void
myEncode(dynamic item) → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
remove(String name, Object value) → void
save() Future<void>
set(String name, Object value) → void
Set name and value to fields.
sets(Map map) → void
Call set methods for each key and value in map
toJson() → dynamic
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Properties

ncmb NCMB?
For accessing to NCMB
read / write