CorsTrait class
- Implemented types
- Annotations
-
- @ShapeIdConverter()
- @JsonSerializable()
Constructors
-
CorsTrait.new({String origin = CorsTrait.defaultOrigin, int maxAge = CorsTrait.defaultMaxAge, Set<
String> additionalAllowedHeaders = const {}, Set<String> additionalExposedHeaders = const {}}) -
const
- CorsTrait.fromJson(Object? json)
-
factory
Properties
-
additionalAllowedHeaders
→ Set<
String> -
final
-
additionalExposedHeaders
→ Set<
String> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isSynthetic → bool
-
Checks if this trait is persisted with the shape, or if it is a synthetic,
or transient trait, only meant to temporarily aid in some kind of
in-memory model transformation.
no setteroverride
- maxAge → int
-
final
- origin → String
-
final
-
props
→ List<
Object?> -
The type's equatable properties.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shapeId → ShapeId
-
Returns the fully-qualified shape ID of the trait.
no setteroverride
- value → CorsTrait
-
The value of the trait.
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
Serializes
this
as a JSON object.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultMaxAge → const int
- defaultOrigin → const String
- id → const ShapeId