BotonRest constructor
const
BotonRest({
- Key? key,
- required Widget contenido,
- BoxDecoration? estilo,
- String? url,
- String? method,
- dynamic formkey,
- dynamic arrayData,
- TextStyle? errorStyle,
- bool showModalLoader = true,
- String stringCargando = 'Cargando...',
- dynamic action(
- dynamic
- String? token,
- bool showSuccess = false,
- TextStyle? succesStyle,
- bool habilitado = true,
- bool restriccion = false,
- String? restriccionStr,
- TextStyle? restriccionStyle,
- Function? primerAction,
Boton de código Jaguar con RestFunction para realizar lladamas REST a una url
con un metodo
y si la respuesta es true se realiza una action.
estilo define el estilo del boton, el contendio
del boton, puede estar ligado a un
form con un formkey y enseña un mensaje de error errorStyle cuando la respuesta es false.
También se puede mostrar un showModalLoader con un stringCargando.
Implementation
const BotonRest(
{Key? key,
required this.contenido,
this.estilo,
this.url,
this.method,
// this.action,
this.formkey,
this.arrayData,
this.errorStyle,
this.showModalLoader = true,
this.stringCargando = 'Cargando...',
this.action,
this.token,
this.showSuccess = false,
this.succesStyle,
this.habilitado = true,
this.restriccion = false,
this.restriccionStr,
this.restriccionStyle,
this.primerAction})
: super(key: key);