const PreferencesRoot({super.key, this.title, this.customAppBar}) : assert( title != null || customAppBar != null, 'Either title or customAppBar must be provided', );