getTextButtonStyle method
ButtonStyle?
getTextButtonStyle({
- required TextButtonConstructorType constructorType,
- required BuildContext context,
- required ButtonStyle? style,
TextButton style
Implementation
ButtonStyle? getTextButtonStyle({
required TextButtonConstructorType constructorType,
required BuildContext context,
required ButtonStyle? style,
}) {
switch (constructorType) {
case TextButtonConstructorType.contained:
return style;
case TextButtonConstructorType.transparent:
return getTransparentStyle(
context: context,
style: style,
);
case TextButtonConstructorType.hint:
return getHintStyle(
context: context,
style: style,
);
}
}