verticalAlignRender function

CustomRender verticalAlignRender({
  1. double? verticalOffset,
  2. CSS3? style,
  3. List<InlineSpan>? children,
})

Implementation

CustomRender verticalAlignRender(
        {double? verticalOffset, CSS3? style, List<InlineSpan>? children}) =>
    CustomRender.inlineSpan(
        inlineSpan: (context, buildChildren) => WidgetSpan(
              child: Transform.translate(
                key: context.key,
                offset: Offset(0, verticalOffset ?? _getVerticalOffset(context.tree)),
                child: CssBoxWidget.withInlineSpanChildren(
                  children: children ?? buildChildren.call(),
                  style: context.style,
                ),
              ),
            ));