generate method
dynamic
generate(
- dynamic theme
)
override
Implementation
@override
generate(dynamic theme) {
if (theme == null) {
if (style != null) {
return TextTheme(
// color: style!.background,
// opacity: style!.opacity,
// size: style!.size,
);
} else {
return null;
}
} else {
if (style != null) {
return (theme as TextTheme).copyWith(
// color: style!.background ?? theme.color,
// opacity: style!.opacity ?? theme.opacity,
// size: style!.size ?? theme.size,
);
} else {
return theme as TextTheme;
}
}
}