dart_fusion library
A library that brings together a harmonious blend of essential tools, utilities, and components designed to supercharge your Dart projects.
Classes
- Accept
- Represents the 'Accept' header.
- AcceptCharset
- Represents the 'Accept-Charset' header.
- AcceptEncoding
- Represents the 'Accept-Encoding' header.
- AcceptLanguage
- Represents the 'Accept-Language' header.
- AcceptRanges
- Represents the 'Accept-Ranges' header.
- AccessControlAllowCredentials
- Represents the 'Access-Control-Allow-Credentials' header.
- AccessControlAllowHeaders
- Represents the 'Access-Control-Allow-Headers' header.
- AccessControlAllowMethods
- Represents the 'Access-Control-Allow-Methods' header.
- AccessControlExposeHeaders
- Represents the 'Access-Control-Expose-Headers' header.
- AccessControlMaxAge
- Represents the 'Access-Control-Max-Age' header.
- AccessControlRequestHeaders
- Represents the 'Access-Control-Request-Headers' header.
- AccessControlRequestMethod
- Represents the 'Access-Control-Request-Method' header.
- Age
- Represents the 'Age' header.
- Allow
- Represents the 'Allow' header.
- Assert
- A utility class for performing assertions and validations.
- Authorization
- Represents the 'Authorization' header.
- ContentDisposition
- Represents the 'Content-Disposition' header.
- ContentEncoding
- Represents the 'Content-Encoding' header.
- ContentLanguage
- Represents the 'Content-Language' header.
- ContentLocation
- Represents the 'Content-Location' header.
- ContentRange
- Represents the 'Content-Range' header.
- ContentSecurityPolicy
- Represents the 'Content-Security-Policy' header.
- ContentSecurityPolicyReportOnly
- Represents the 'Content-Security-Policy-Report-Only' header.
- ContentType
- Represents the 'Content-Type' header.
- Cors
- Configuration class for defining Cross-Origin Resource Sharing (CORS) policies.
- Date
- Represents the 'Date' header.
- DLog
- A simple logging utility for printing log messages with customizable log levels.
- DMiddleware
- A well-design middleware used in dart backend.
- DModel
-
Base dart model which consist
copyWith
,toJSON
,fromJSON
andtoString
value. - DParse
- A utility class for parsing mostly related to http request.
- DService
- A set of service collection mosty used in dart backend.
- ETag
- Represents the 'ETag' header.
- Expires
- Represents the 'Expires' header.
- Header
- Abstract class representing headers used in CORS policies.
- LastModified
- Represents the 'Last-Modified' header.
- LinkModel
- Link reference used in ResponseModel to indicate the relationship of resources.
- Model
- Annotation of class as an indicator to generate a fromJSON, toJSON and copyWith inside the annotated class.
- Origin
- Represents the 'Origin' header.
- Refresh
- Represents the 'Refresh' header.
- ReportTo
- Represents the 'Report-To' header.
- ResponseAssert
- A specialized Assert class for handling response-related assertions.
- ResponseModel
-
Basic model in root of every
Response
, containing success status, message and also data that extends DModel class. - SecFetchCache
- Represents the 'Sec-Fetch-Cache' header.
- SecFetchCredentials
- Represents the 'Sec-Fetch-Credentials' header.
- SecFetchDest
- Represents the 'Sec-Fetch-Dest' header.
- SecFetchFrame
- Represents the 'Sec-Fetch-Frame' header.
- SecFetchMode
- Represents the 'Sec-Fetch-Mode' header.
- SecFetchPriority
- Represents the 'Sec-Fetch-Priority' header.
- SecFetchSite
- Represents the 'Sec-Fetch-Site' header.
- SecFetchUser
- Represents the 'Sec-Fetch-User' header.
- SecFetchVersion
- Represents the 'Sec-Fetch-Version' header.
- SecWebSocketAccept
- Represents the 'Sec-WebSocket-Accept' header.
- SecWebSocketExtensions
- Represents the 'Sec-WebSocket-Extensions' header.
- SecWebSocketKey
- Represents the 'Sec-WebSocket-Key' header.
- SecWebSocketProtocol
- Represents the 'Sec-WebSocket-Protocol' header.
- SecWebSocketVersion
- Represents the 'Sec-WebSocket-Version' header.
- SecWebSocketVersionId
- Represents the 'Sec-WebSocket-Version-Id' header.
- SecWebSocketVersionKey
- Represents the 'Sec-WebSocket-Version-Key' header.
- SecWebSocketVersionLocation
- Represents the 'Sec-WebSocket-Version-Location' header.
- SecWebSocketVersionNonce
- Represents the 'Sec-WebSocket-Version-Nonce' header.
- SecWebSocketVersionOrigin
- Represents the 'Sec-WebSocket-Version-Origin' header.
- SecWebSocketVersionParentId
- Represents the 'Sec-WebSocket-Version-Parent-Id' header.
- Tk
- Represents the 'Tk' header.
- Trailer
- Represents the 'Trailer' header.
- TransferEncoding
- Represents the 'Transfer-Encoding' header.
- Variable
- Annotation of variable inside a class with Model annotation.
- Vary
- Represents the 'Vary' header.
- Via
- Represents the 'Via' header.
- Warning
- Represents the 'Warning' header.
- WWWAuthenticate
- Represents the 'WWW-Authenticate' header.
- XContentDuration
- Represents the 'X-Content-Duration' header.
- XContentSecurityPolicy
- Represents the 'X-Content-Security-Policy' header.
- XContentSecurityPolicyReportOnly
- Represents the 'X-Content-Security-Policy-Report-Only' header.
- XContentTypeOptions
- Represents the 'X-Content-Type-Options' header.
- XCorrelationID
- Represents the 'X-Correlation-ID' header.
- XCustomHeader
- Represents the 'X-Custom-Header' header.
- XDeviceUserAgent
- Represents the 'X-Device-User-Agent' header.
- XDNSPrefetchControl
- Represents the 'X-DNS-Prefetch-Control' header.
- XDownloadOptions
- Represents the 'X-Download-Options' header.
- XForwardedFor
- Represents the 'X-Forwarded-For' header.
- XForwardedHost
- Represents the 'X-Forwarded-Host' header.
- XForwardedProto
- Represents the 'X-Forwarded-Proto' header.
- XForwardedScheme
- Represents the 'X-Forwarded-Scheme' header.
- XForwardedServer
- Represents the 'X-Forwarded-Server' header.
- XForwardedSSL
- Represents the 'X-Forwarded-SSL' header.
- XForwardedSslClientCert
- Represents the 'X-Forwarded-SSL-Client-Cert' header.
- XForwardedSslClientCertInfo
- Represents the 'X-Forwarded-SSL-Client-Cert-Info' header.
- XFrameOptions
- Represents the 'X-Frame-Options' header.
- XFrameOptionsAllowFrom
- Represents the 'X-Frame-Options-Allow-From' header.
- XFrameOptionsDeny
- Represents the 'X-Frame-Options-Deny' header.
- XFrameOptionsType
- Represents the 'X-Frame-Options-Type' header.
- XHTTPMethod
- Represents the 'X-HTTP-Method' header.
- XPermittedCrossDomainPolicies
- Represents the 'X-Permitted-Cross-Domain-Policies' header.
- XPermittedCrossDomainPolicy
- Represents the 'X-Permitted-Cross-Domain-Policy' header.
- XPoweredBy
- Represents the 'X-Powered-By' header.
- XRealIP
- Represents the 'X-Real-IP' header.
- XRedirectBy
- Represents the 'X-Redirect-By' header.
- XRequestedWith
- Represents the 'X-Requested-With' header.
- XRequestID
- Represents the 'X-Request-ID' header.
- XResponseTime
- Represents the 'X-Response-Time' header.
- XRobotsTag
- Represents the 'X-Robots-Tag' header.
- XSourceMap
- Represents the 'X-SourceMap' header.
- XUACompatible
- Represents the 'X-UA-Compatible' header.
- XUIDH
- Represents the 'X-UIDH' header.
- XWapProfile
- Represents the 'X-Wap-Profile' header.
- XWebKitCSP
- Represents the 'X-WebKit-CSP' header.
- XWebKitCSPReportOnly
- Represents the 'X-WebKit-CSP-Report-Only' header.
- XXSRFToken
- Represents the 'X-XSRF-Token' header.
- XXSSProtection
- Represents the 'X-XSS-Protection' header.
- XZoneDebug
- Represents the 'X-Zone-Debug' header.
Enums
- DLevel
- Enumeration representing different log levels for debugging and logging purposes.
- DurationType
- Enum representing different units for duration.
Extensions
-
DModelListExtension
on List<
DModel> - An extension of DModel list.
- JSONExtension on JSON
- Extension on the Map<String, dynamic> value.
-
ListExtension
on List<
OldValue> - Extensioning generic List value.
- NumberExtension on Number
- Extension on numeric types (int, double) to add utility methods for limiting values within a specified range.
- OnRequestContext on RequestContext
-
An extension of
RequestContext
. - ResponseExtension on Response
- Extension for handling assertions on HTTP responses.
- StringExtension on String
- Extension on String to provide additional functionality.
Constants
- model → const Model
- A constant instance of Model to be used as an annotation. Use this constant as an annotation on classes to specify wether its part of code generation or not.
- variable → const Variable
- A constant instance of Variable to be used as an annotation. Use this constant as an annotation on variable to specify wether its part of code generation or not.
Typedefs
-
JSON
= Map<
String, dynamic> - Define JSON Type as a shortcut for Map<String, dynamic>.
Exceptions / Errors
- ResponseException
-
An exception containing
Response
value. - TypeException
- An exception caused by failing to parse Type.