buildTextButton method
Implementation
@protected
Widget buildTextButton(BuildParameters params) {
Widget child;
if (params.widgets["child"] != null) {
child = builder.buildWidget(params.context, params.widgets["child"],
params.state, params.parentContext);
} else if (params.props["text"] != null) {
child = Text(properties.getText(params.props["text"], "button"));
} else {
child = Container();
}
return TextButton(
key: properties.getKey(params.id),
style: params.buildProp("style"),
onPressed: events.getFunction(params.context, params.actions["onPressed"],
params.state, params.parentContext),
child: child,
);
}