NCMBObject class

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
no setter
hashCode int
The hash code for this object.
no setterinherited
name → dynamic
Accessor methods. We can get class name by obj.name
no setter
objectId String?
ObjectId
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(String name, Object value) → void
addUnique(String name, Object value) → void
containsKey(String name) bool
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?
getBool(String name, {bool? defaultValue}) bool
getDateTime(String name, {DateTime? defaultValue}) DateTime
getDouble(String name, {double? defaultValue}) double
getInt(String name, {int? defaultValue}) int
getList(String name, {List? defaultValue}) List
getString(String name, {String? defaultValue}) String
hasKey(String name) bool
increment(String name, {int number = 1}) → void
myEncode(dynamic item) → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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
getter/setter pair