verticalAlignRender function

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

Implementation

CustomRender verticalAlignRender(
        {double? verticalOffset, Style? style, List<InlineSpan>? children}) =>
    CustomRender.inlineSpan(
        inlineSpan: (context, buildChildren) => WidgetSpan(
              child: Transform.translate(
                key: context.key,
                offset: Offset(
                    0, verticalOffset ?? _getVerticalOffset(context.tree)),
                child: StyledText(
                  textSpan: TextSpan(
                    style: style?.generateTextStyle() ??
                        context.style.generateTextStyle(),
                    children: children ?? buildChildren.call(),
                  ),
                  style: context.style,
                  renderContext: context,
                ),
              ),
            ));