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