p method

Widget p({
  1. bool firstChild = false,
})

Implementation

Widget p({bool firstChild = false}) {
  Widget child;
  if (this is WrappedText) {
    child = (this as WrappedText).copyWithStyle(
      (context, theme) => theme.typography.p,
    );
  } else {
    child = WrappedText(
        style: (context, theme) => theme.typography.p, child: this);
  }
  if (firstChild) {
    return child;
  }
  return Padding(
    padding: const EdgeInsets.only(top: 24),
    child: child,
  );
}