wa_model_less library

Classes

CollectionEvent
Event management system for database collection operations.
DBCollectionFree
An abstract class representing a MongoDB collection with utility methods.
DBFieldFree<T>
DBFormFree
DBIndex
Configuration class for MongoDB database indexes.
Event<T>
Generic event system for handling typed events with multiple listeners.
FieldResultFree<T>
FormResultFree
LMap
A class that provides a map with a default value for missing keys.
MLess
A class that wraps around ModelLess and provides additional functionality or abstraction.
ModelLess
The ModelLess class is a dynamic, flexible data structure designed to handle nested data structures and perform common operations such as accessing, setting, and manipulating data within the structure. This class is particularly useful in scenarios where you need to work with JSON-like data structures that may contain nested maps or lists. Below is a detailed breakdown of the key features and methods in the ModelLess class.
ModelLessArray<T>
The ModelLessArray class is a generic class that provides a structure for managing a collection of items, specifically designed to work with ModelLess objects. This class offers features such as accessing items by index, dynamically setting and getting values, parsing JSON into the array, and retrieving nested data using paths. Below is an explanation and breakdown of the key features:
MongoErrorResponse
Utility class for parsing and processing MongoDB error responses.
ObjectDescovery

Extensions

FormatHelper on dynamic
MapFormatHelper on Map
Extension on Map that provides utility methods for type conversion and data extraction.
MapPath on Map<String, dynamic>
Extension on Map<String, dynamic> that allows navigating nested structures using a path string.

Typedefs

EventAsyncFunction<R> = Future<void> Function(R data)
Type definition for asynchronous event listener functions.
EventFunction<R> = void Function(R data)
Type definition for synchronous event listener functions.