NCMBRequest class
NCMBリクエストを扱うクラス
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
delete(
String name, String objectId) → Future< Map> -
DELETEリクエストを行う
name
クラス名objectId
削除対象のオブジェクトID -
exec(
String method, String name, {dynamic fields = const {}, dynamic objectId = '', dynamic queries = const {}, Map< String, String> additionalHeaders = const {}, dynamic path = '', dynamic multipart = false, dynamic isScript = false}) → Future<Map> -
リクエストを実行する
method
リクエストメソッドname
クラス名objectId
オブジェクトID。省略時は空文字。fields
データ情報。省略時は空のMap。queries
検索条件。省略時は空のMap。multipart
マルチパートリクエストかどうか(ファイルストア用)。省略時はfalsepath
パス。省略時は空文字。additionHeaders
追加するヘッダー情報。省略時は空のMap。isScript
スクリプト実行かどうか。省略時はfalse。 -
get(
String name, Map queries, {dynamic multipart = false}) → Future< List> -
GETリクエストを行う
name
クラス名queries
検索条件multipart
マルチパートリクエストかどうか(ファイルストア用)。省略時はfalse -
jsonEncode(
Map fields) → String -
データをJSON化する
NCMB特有のデータ変換を行う。
fields
データ情報 -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
post(
String name, Map fields, {dynamic multipart = false}) → Future< Map> -
POSTリクエストを行う
name
クラス名fields
追加するデータ情報multipart
マルチパートリクエストかどうか(ファイルストア用)。省略時はfalse -
printWrapped(
String text) → void -
データ表示用(デバッグ用)
text
テキスト -
put(
String name, String objectId, Map fields) → Future< Map> -
PUTリクエストを行う
name
クラス名objectId
更新対象のオブジェクトIDfields
更新するデータ情報 -
req(
String url, String method, Map fields, Map< String, dynamic> headers, {dynamic multipart = false, dynamic fileName = ''}) → Future<Response> -
リクエスト用オブジェクトを返す
url
URLmethod
リクエストメソッドfields
データ情報headers
ヘッダー情報multipart
マルチパートリクエストかどうか(ファイルストア用)。省略時はfalsefileName
ファイル名(ファイルストア用)。省略時は空文字。 -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited