Preferences constructor
const
Preferences({
- double textBoxHeight = 114,
- int typingDelay = 20,
- double backgroundParallax = 0.005,
- Map<
String, Offset> spritePositions = const {'center' : Offset(0, 0.5), 'center_left' : Offset(-1 / 3, 0.5), 'center_right' : Offset(1 / 3, 0.5), 'left' : Offset(-2 / 3, 0.5), 'right' : Offset(2 / 3, 0.5)}, - String savePath = '/novel/',
- String translate() = Preferences.defaultTranslator,
Implementation
const Preferences(
{this.textBoxHeight = 114,
this.typingDelay = 20,
this.backgroundParallax = 0.005,
this.spritePositions = const {
'center': Offset(0, 0.5),
'center_left': Offset(
-1 / 3,
0.5,
),
'center_right': Offset(1 / 3, 0.5),
'left': Offset(-2 / 3, 0.5),
'right': Offset(2 / 3, 0.5),
},
this.savePath = '/novel/',
this.translate = Preferences.defaultTranslator});