ServiceConst class
A utility class that defines constants commonly used in HTTP services.
This class centralizes HTTP-related constants, including status codes, default headers, error messages, and common HTTP error descriptions.
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultError → const String
- A default error message for unknown errors.
-
defaultPostHeaders
→ const Map<
String, String> - Default headers for HTTP POST requests, indicating JSON content.
- successStatucCode → const int
- HTTP status code for "Success".