DFJoyStick constructor
DFJoyStick({
- String? handleImage,
- String? backgroundImage,
- Color handleColor = const Color(0x60FFFFFF),
- Color backgroundColor = const Color(0x40FFFFFF),
- String direction = DFDirection.NONE,
- required void onChange(),
- required void onCancel(),
- Size size = const Size(100, 100),
- Size areaSize = const Size(240, 240),
创建遥杆
Implementation
DFJoyStick({
this.handleImage,
this.backgroundImage,
this.handleColor = const Color(0x60FFFFFF),
this.backgroundColor = const Color(0x40FFFFFF),
this.direction = DFDirection.NONE,
required this.onChange,
required this.onCancel,
this.size = const Size(100, 100),
this.areaSize = const Size(240, 240),
});