textPadding function

Padding textPadding(
  1. String data, {
  2. EdgeInsets padding = const EdgeInsets.all(defaultPadding),
  3. TextAlign? textAlign,
  4. TextStyle? style,
})

Implementation

Padding textPadding(
  String data, {
  EdgeInsets padding = const EdgeInsets.all(defaultPadding),
  TextAlign? textAlign,
  TextStyle? style,
}) {
  return Padding(
    padding: padding,
    child: Text(
      data,
      textAlign: textAlign,
      style: style,
    ),
  );
}