caption static method
Implementation
static Widget caption(
String? text, {
BuildContext? context,
TextAlign? textAlign,
Key? key,
Color? color,
TextStyle? style,
}) {
assert(color == null || style == null);
if (context == null) {
return Builder(
builder: (ctx) => caption(
text,
context: ctx,
textAlign: textAlign,
key: key,
color: color,
style: style,
),
);
}
return Text(
text ?? '',
key: key,
textAlign: textAlign,
style: _resolveStyle(
context, Theme.of(context).textTheme.bodySmall, color, style),
);
}