$declaration constant

BridgeClassDef const $declaration

Compile-time class declaration of $TextSpan

Implementation

static const $declaration = BridgeClassDef(
  BridgeClassType($type, $extends: $InlineSpan.$type),
  constructors: {
    '': BridgeConstructorDef(
      BridgeFunctionDef(
        returns: BridgeTypeAnnotation($type),
        namedParams: [
          BridgeParameter(
            'text',
            BridgeTypeAnnotation(
              BridgeTypeRef(CoreTypes.string, []),
              nullable: true,
            ),
            true,
          ),
          BridgeParameter(
            'children',
            BridgeTypeAnnotation(
              BridgeTypeRef(
                  CoreTypes.list, [BridgeTypeAnnotation($InlineSpan.$type)]),
              nullable: true,
            ),
            true,
          ),
          BridgeParameter(
            'style',
            BridgeTypeAnnotation(
              $TextStyle.$type,
              nullable: true,
            ),
            true,
          ),
          BridgeParameter(
            'semanticsLabel',
            BridgeTypeAnnotation(
              BridgeTypeRef(CoreTypes.string, []),
              nullable: true,
            ),
            true,
          ),
          BridgeParameter(
            'semanticsIdentifier',
            BridgeTypeAnnotation(
              BridgeTypeRef(CoreTypes.string, []),
              nullable: true,
            ),
            true,
          ),
          BridgeParameter(
            'locale',
            BridgeTypeAnnotation($Locale.$type, nullable: true),
            true,
          ),
          BridgeParameter(
            'spellOut',
            BridgeTypeAnnotation(
              BridgeTypeRef(CoreTypes.bool, []),
              nullable: true
            ),
            true,
          ),
        ],
        params: [],
      ),
    ),
  },
  wrap: true,
  bridge: false,
);