This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mixin CustomStateMixin<T> on State<T> { | |
var _state = CustomState.idle; | |
var _message = ''; | |
void setIdleState() { | |
setState(() { | |
_state = CustomState.idle; | |
}); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CustomTicket extends CustomClipper<Path> { | |
@override | |
Path getClip(Size size) { | |
final path = Path(); | |
//Radius | |
path.addRRect( | |
RRect.fromRectAndRadius( | |
Rect.fromLTWH(0, 0, size.width, size.height), | |
const Radius.circular(8), | |
), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers\API; | |
class ResponseFormatter | |
{ | |
protected static $response = [ | |
'meta' => [ | |
'code' => 200, | |
'status' => 'success', |