SettingsCell constructor

SettingsCell({
  1. Key? key,
  2. Set<MaterialState>? initialStates,
  3. VoidCallback? onPressed,
  4. Map<String, dynamic>? extraInfo,
})

SettingsCell

  • initialStates any initial material states that should be applied to this cell (disabled/selected etc)
  • onPressed a callback that will be executed when the cell is pressed
  • extraInfo a map where you can pass additional info through to your subclasses to be used however you need

Implementation

SettingsCell({Key? key, Set<MaterialState>? initialStates, this.onPressed, this.extraInfo})
    : initialStates = initialStates ?? <MaterialState>{},
      super(key: key);