testing
library
Classes
-
SchemaFixtureCase
-
One JSON document that an exported schema must accept or reject.
-
SchemaFixtureSuite
-
One exported schema and the documents that pin its acceptance boundary.
Enums
-
SchemaModifier
-
Modifier discriminator wire values currently supported by
mix_protocol.
-
SchemaStyler
-
Styler discriminator wire values for the
type field.
-
SchemaVariant
-
Variant discriminator wire values currently supported by
mix_protocol.
Functions
-
payloadAlignment(Alignment value)
→ Object
-
Wire value for schema-supported alignments.
-
payloadBorder({JsonMap? top, JsonMap? right, JsonMap? bottom, JsonMap? left})
→ JsonMap
-
Sparse
Border payload; omits absent sides.
-
payloadBorderRadius({double? topLeft, double? topRight, double? bottomLeft, double? bottomRight})
→ JsonMap
-
Sparse per-corner
BorderRadius payload; omits unset corners.
-
payloadBorderSide({Color? color, double? width, BorderStyle? style})
→ JsonMap
-
Single
BorderSide payload; omits unset fields.
-
payloadBoxShadow(BoxShadow value)
→ JsonMap
-
-
payloadColor(Color value)
→ String
-
Wire value for canonical color literals.
-
payloadConstraints({double? minWidth, double? maxWidth, double? minHeight, double? maxHeight})
→ JsonMap
-
Sparse
BoxConstraints payload; omits unset bounds.
-
payloadDecoration({Color? color, JsonMap? border, Object? borderRadius, List<JsonMap>? boxShadow})
→ JsonMap
-
Sparse
BoxDecoration payload covering the fields producers emit today.
-
payloadEdgeInsets({double? all, double? left, double? top, double? right, double? bottom})
→ Object
-
-
payloadEnum(Enum value)
→ String
-
Wire value for any
enumName-based field (e.g. Axis, Clip, FlexFit).
-
payloadFontWeight(FontWeight value)
→ String
-
Wire value for the schema's supported FontWeight values.
-
payloadModifier(SchemaModifier type, [JsonMap? fields])
→ JsonMap
-
Builds a modifier payload with the discriminator already filled in.
-
payloadOffset(Offset value)
→ JsonMap
-
-
payloadShadow(Shadow value)
→ JsonMap
-
-
payloadStyler(SchemaStyler type, [JsonMap? fields])
→ JsonMap
-
Builds a styler payload with the discriminator already filled in.
-
payloadTextDecoration(TextDecoration value)
→ String
-
Wire value for the schema's supported TextDecoration values.
-
payloadTextHeightBehavior({bool? applyHeightToFirstAscent, bool? applyHeightToLastDescent, TextLeadingDistribution? leadingDistribution})
→ JsonMap
-
Sparse
TextHeightBehavior payload; omits unset fields.
-
payloadTextStyle({Color? color, double? fontSize, FontWeight? fontWeight, TextDecoration? decoration, double? height, double? letterSpacing})
→ JsonMap
-
Sparse
TextStyle payload covering the fields producers emit.
-
payloadVariant(SchemaVariant kind, [JsonMap? fields])
→ JsonMap
-
Builds a variant payload with the discriminator already filled in.
-
payloadWidgetState(WidgetState value)
→ String
-
Wire value for schema-supported WidgetState variant fields.
-
renderSchemaFixtures(List<SchemaFixtureSuite> suites)
→ Map<String, String>
-
Renders a package's
schema/ directory as relative path to contents.