Preferences constructor

const Preferences({
  1. double textBoxHeight = 114,
  2. int typingDelay = 20,
  3. double backgroundParallax = 0.005,
  4. 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)},
  5. String savePath = '/novel/',
  6. String translate(
    1. String
    ) = 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});