verticalAlignRender function
CustomRender
verticalAlignRender({
- double? verticalOffset,
- CSS3? style,
- 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,
),
),
));