build method

  1. @override
Widget build(
  1. Context context
)
override

Implementation

@override
Widget build(Context context) {
  final theme = Theme.of(context).copyWith(
    defaultTextStyle: style,
    textAlign: textAlign,
    softWrap: softWrap,
    overflow: overflow,
    maxLines: maxLines,
  );

  return InheritedWidget(
    inherited: theme,
    build: (Context context) => child,
  );
}