model_notifier library Null safety

Package that defines and notifies the model.

To use, import package:model_notifier/model_notifier.dart.

Classes

Api
Provides static methods for making HTTP requests. HTTPのリクエストを行うためのstaticメソッドを提供します。
ApiCollectionModel<T>
Class that can retrieve data from the RestAPI and store it as a collection of value.
ApiDocumentModel<T>
Class that can retrieve data from the RestAPI and store it as a document.
ApiDynamicCollectionModel
ApiDynamicDocumentModel
CollectionTransactionBuilder
Transaction builder for collection.
Config
Class that handles the app config.
Const
Class that defines a constant value.
ConvertibleValueModel<T>
Abstract class for the convertable value model.
DateFormat
DateFormat is for formatting and parsing dates in a locale-sensitive manner.
DocumentTransactionBuilder
Transaction builder for document.
DynamicCollectionModel<T extends DynamicDocumentModel>
Collection model for flexibly modifying the contents of an object that is primarily a DynamicMap.
DynamicDocumentModel
Documentation model for flexibly modifying the contents of an object that is primarily a DynamicMap.
DynamicSearchableCollectionModel<T extends DynamicDocumentModel>
Searchable collection model for flexibly modifying the contents of an object that is primarily a DynamicMap.
FontAwesomeIcons
Icons based on font awesome 6.2.0
FutureModel<T>
Abstract class for creating a model that can wait on Future.
GeoData
Stores location data.
Immutable
Used to annotate a class.
LinkedCollectionTransactionBuilder
Transaction builder for collection for linkedCollection.
ListenableList<T>
This is a ChangeNotifier class that can be handled as a list.
ListenableListener<T extends Listenable>
Widget that listens for Listenables and rebuilds the widgets inside when there is an update.
ListenableMap<K, V>
This is a ChangeNotifier class that can be handled as a map.
ListModel<T extends Listenable>
A model that can be treated as a list.
LocalCollectionModel<T extends LocalDocumentModel>
Base class for holding and manipulating data from a local database as a collection of LocalDocumentModel.
LocalCollectionTransactionBuilder
Generates a transaction builder.
LocalDatabase
Local database.
LocalDocumentModel<T>
Base class for holding and manipulating data from a local database as a document of T.
LocalDocumentTransactionBuilder
Generates a transaction builder.
LocalDynamicCollectionModel
Specify the path and use DynamicMap to hold the data LocalCollectionModel.
LocalDynamicDocumentModel
Specify the path and use DynamicMap to hold the data LocalDocumentModel.
LocalDynamicSearchableCollectionModel
Retrieves and retrieves collection data stored in a local database.
Localize
Class to translate.
LocalStore
Define a datastore structure for local use.
LocalStoreCollectionQuery
Query for storing collection in LocalStore.
LocalStoreDocumentQuery
Query for storing documents in LocalStore.
LocalStoreDocumentUpdate
Class for notification of document updates.
LocalTransaction
MapModel<T>
A model that can be treated as a map.
MetaConst
Class that defines a constant value for metadata.
Model<T>
You can create a Model based on a ChangeNotifier.
ModelQuery
Class for sending queries to the model.
Prefs
Save and load data locally.
Required
Used to annotate a named parameter p in a method or function f.
RuntimeCollectionModel<T extends RuntimeDocumentModel>
Base class for holding and manipulating data from a runtime database as a collection of RuntimeDocumentModel.
RuntimeCollectionTransactionBuilder
Generates a transaction builder.
RuntimeDatabase
Runtime database.
RuntimeDocumentModel<T>
Base class for holding and manipulating data from a runtime database as a document of T.
RuntimeDocumentTransactionBuilder
Generates a transaction builder.
RuntimeDynamicCollectionModel
Specify the path and use DynamicMap to hold the data LocalCollectionModel.
RuntimeDynamicDocumentModel
Specify the path and use DynamicMap to hold the data RuntimeDocumentModel.
RuntimeDynamicSearchableCollectionModel
Retrieves and retrieves collection data stored in a runtime database.
RuntimeTransaction
StoredCollectionModel<T>
Abstract class that defines methods on collection model for reading and writing data.
StoredDocumentModel<T>
Abstract class that defines methods on document model for reading and writing data.
UserStateChangedCallback
Callback class to be called when the user's state is changed.
ValueModel<T>
Model which only stores one value.

Mixins

ListModelMixin<T>
This is a mix-in that allows you to treat a model as a List.
LocalDocumentMetaMixin<T>
Mix-in that completes the document metadata (time, UID, etc.) on Save.
LocalSearchQueryMixin<T extends LocalDocumentModel>
A mixin to add search functionality to LocalCollectionModel.
MapModelMixin<K, V>
A mix-in that allows you to use a model as a map.
RuntimeDocumentMetaMixin<T>
Mix-in that completes the document metadata (time, UID, etc.) on Save.
RuntimeSearchQueryMixin<T extends RuntimeDocumentModel>
A mixin to add search functionality to RuntimeDocumentModel.

Extensions

AgesExtensions
ColorExtensions
Provides general extensions to Color.
CSVListExtensions
Extended method of listing for CSV.
DateTimeExtensions
Provides extended methods for DateTime. DateTime用の拡張メソッドを提供します。
DateTimeIterableExtensions
Provides extended methods for DateTime arrays. DateTimeの配列用の拡張メソッドを提供します。
DoubleExtensions
Provides extended methods for double. double用の拡張メソッドを提供します。
DoubleIterableExtensions
Provides extended methods for double arrays. doubleの配列用の拡張メソッドを提供します。
DurationExtensions
Provides extended methods for Duration. Duration用の拡張メソッドを提供します。
DynamicDocumentModelExtensions
FlutterDateTimeExtensions
Provides flutter extensions to DateTime.
GenderExtensions
GeoMapExtensions
InterableOfIterableExtensions
Provides extended methods for Iterable arrays. Iterableの配列用の拡張メソッドを提供します。
IntExtensions
Provides extended methods for int. int用の拡張メソッドを提供します。
IntIterableExtensions
Provides extended methods for int arrays. intの配列用の拡張メソッドを提供します。
IterableExtensions
Provides extended methods for T arrays. Tの配列用の拡張メソッドを提供します。
JsonDynamicListExtensions
Provides Json extension methods for DynamicList. DynamicList用のJson拡張メソッドを提供します。
JsonDynamicMapExtensions
Provides Json extension methods for DynamicMap. DynamicMap用のJson拡張メソッドを提供します。
ListenableListExtensions
ListenableMapExtensions
ListExtensions
Provides extended methods for List in T. TList用の拡張メソッドを提供します。
ListOfDynamicMapExtensions
Extension methods for DynamicMap listings.
LocalizeStringExtensions
Provides localize extensions to String.
MapExtensions
Provides extended methods for Map. Map用の拡張メソッドを提供します。
MasamuneDynamicMapExtensions
NullableDoubleExtensions
Provides an extension method for double that is nullable. Nullableなdouble用の拡張メソッドを提供します。
NullableGeoMapExtensions
NullableIntExtensions
Provides an extension method for int that is nullable. Nullableなint用の拡張メソッドを提供します。
NullableIterableExtensions
Provides an extension method for Iterable that is nullable. NullableなIterable用の拡張メソッドを提供します。
NullableListExtensions
Provides an extension method for List that is nullable. NullableなList用の拡張メソッドを提供します。
NullableLocalizeStringExtensions
Provides general extensions to String?.
NullableMapExtensions
Provides an extension method for Map that is nullable. NullableなMap用の拡張メソッドを提供します。
NullableNumExtensions
Provides an extension method for num that is nullable. Nullableなnum用の拡張メソッドを提供します。
NullableObjectExtensions
Provides an extension method for List that is nullable. NullableなObject用の拡張メソッドを提供します。
NullableSetExtensions
Provides an extension method for Set that is nullable. NullableなSet用の拡張メソッドを提供します。
NullableStringExtensions
Provides an extension method for String that is nullable. NullableなString用の拡張メソッドを提供します。
NullableValueIterableExtensions
Provides an extension method for Iterable whose value is nullable. 値がNullableなIterable用の拡張メソッドを提供します。
NumExtensions
Provides extended methods for num. num用の拡張メソッドを提供します。
RandomExtensions
Provides extended methods for Random. Random用の拡張メソッドを提供します。
SetExtensions
Provides extended methods for Set. Set用の拡張メソッドを提供します。
StringExtensions
Provides extended methods for String. String用の拡張メソッドを提供します。

Constants

nullOfBool → const bool?
A null object with a defined type of bool? bool?の型を定義したnullオブジェクト。
null
nullOfDouble → const double?
A null object with a defined type of double? double?の型を定義したnullオブジェクト。
null
nullOfDynamicList → const DynamicList?
A null object with a defined type of DynamicList? DynamicList?の型を定義したnullオブジェクト。
null
nullOfDynamicMap → const DynamicMap?
A null object with a defined type of DynamicMap? DynamicMap?の型を定義したnullオブジェクト。
null
nullOfInt → const int?
A null object with a defined type of int? int?の型を定義したnullオブジェクト。
null
nullOfNum → const num?
A null object with a defined type of num? num?の型を定義したnullオブジェクト。
null
nullOfString → const String?
A null object with a defined type of String? String?の型を定義したnullオブジェクト。
null
zeroOfNum → const num
A 0 object with a defined type of num? numの型を定義した0オブジェクト。
0

Properties

sprintf PrintFormat
read / write
uuid String
Generate and retrieve the UUID for Version 4. Version4のUUIDを生成し取得します。
read-only

Functions

dailyKey(String key, [DateTime? time]) String
Gets the key for the date associated with key.
generateCode(int length, {int seed = 0, String charSet = "23456789abcdefghjkmnpqrstuvwxy"}) String
Generates and returns a random string with the number of characters given by length. lengthで与えられた文字数でランダムな文字列を生成して返します。
generateRandomMaterialColor({List<Color>? ignoreColors, int? seed}) MaterialColor
Gets a random material design color (the color available in white text color).
initializeDateFormatting([String? locale, String? ignored]) Future<void>
This should be called for at least one locale before any date formatting methods are called. It sets up the lookup for date symbols. Both the locale and ignored parameter are ignored, as the data for all locales is directly available.
jsonDecodeAsList<T extends Object>(String json, [List<T> defaultValue = const []]) List<T>
Converts json to a Json-decoded List
jsonDecodeAsMap<T extends Object>(String json, [Map<String, T> defaultValue = const {}]) Map<String, T>
Converts json to a Json-decoded Map<String, dynamic> object. jsonをJsonデコードされたMap<String, dynamic>オブジェクトに変換します。
monthlyKey(String key, [DateTime? time]) String
Gets the key of the month associated with key.
nullOfList<T>() List<T>?
A null object with a defined type of List<T>? List<T>?の型を定義したnullオブジェクト。
nullOfMap<K, V>() Map<K, V>?
A null object with a defined type of Map<K, V>? Map<K, V>?の型を定義したnullオブジェクト。
nullOfSet<T>() Set<T>?
A null object with a defined type of Set<T>? Set<T>?の型を定義したnullオブジェクト。
openURL(String url) Future<void>
Open a new external url.
share({String? text, String? title, List<String> files = const []}) Future<void>
Share text and files with external applications.
wait(Iterable futures) Future<void>
Wait until all Futures given in futures are completed. futuresで与えられたFutureがすべて終了するまで待ちます。
weeklyKey(String key, [DateTime? time]) String
Gets the key for the week associated with key.
yearlyKey(String key, [DateTime? time]) String
Gets the key for the year associated with key.

Enums

Ages
Ages.
ConnectivityResult
Connection status check result.
CounterUpdaterInterval
The period of time for counting up and tallying the values.
Gender
Gender.
LocalStoreDocumentUpdateStatus
Update Status.
ModelQueryOrder
Specifies the order in which queries are ordered.

Typedefs

ApiResponse = Response
An HTTP response where the entire response body is known in advance. 応答本文全体が事前にわかっている HTTP レスポンス。
ApiResquest = Request
An HTTP request where the entire request body is known in advance. リクエスト本文全体が事前にわかっている HTTP リクエスト。
DynamicList = List
Represents the type of List<dynamic>. List<dynamic>の型を表します。
DynamicMap = Map<String, dynamic>
Represents the type of Map<String, dynamic>. Map<String, dynamic>の型を表します。
ListenableDynamicList = ListenableList
Define a list for Json.
ListenableDynamicMap = ListenableMap<String, dynamic>
Define a map for Json.