GlassEditButton constructor

const GlassEditButton({
  1. Key? key,
  2. String editLabel = 'Edit',
  3. String doneLabel = 'Done',
  4. Color? color,
  5. VoidCallback? onPressed,
  6. bool enableHaptics = true,
})

Creates a standard GlassEditButton bound to the nearest GlassEditScope.

Implementation

const GlassEditButton({
  super.key,
  this.editLabel = 'Edit',
  this.doneLabel = 'Done',
  this.color,
  this.onPressed,
  this.enableHaptics = true,
})  : _isExplicit = false,
      _explicitIsEditing = false;