$declaration constant

BridgeClassDef const $declaration

Implementation

static const $declaration = BridgeClassDef(
    BridgeClassType($type,
        isAbstract: false, $extends: $AlignmentGeometry.$type),
    constructors: {
      '': BridgeConstructorDef(BridgeFunctionDef(
          returns: BridgeTypeAnnotation($type),
          namedParams: [
            BridgeParameter('x',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.double)), false),
            BridgeParameter('y',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.double)), false),
          ]))
    },
    getters: {
      'x': BridgeMethodDef(BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.double)))),
      'y': BridgeMethodDef(BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.double)))),
      'topLeft': _stValueType,
      'topCenter': _stValueType,
      'topRight': _stValueType,
      'centerLeft': _stValueType,
      'center': _stValueType,
      'centerRight': _stValueType,
      'bottomLeft': _stValueType,
      'bottomCenter': _stValueType,
      'bottomRight': _stValueType,
    },
    wrap: true);