SafaehSyncChip constructor

const SafaehSyncChip({
  1. Key? key,
  2. required SafaehSyncState state,
  3. required String label,
  4. VoidCallback? onTap,
  5. Duration collapseAfter = const Duration(seconds: 2),
  6. Set<SafaehSyncState> collapseStates = const {SafaehSyncState.saved},
  7. double minWidthForLabel = 70,
  8. double compactSize = 36,
  9. SafaehSyncChipColors colorsBuilder(
    1. BuildContext context,
    2. SafaehSyncState state
    )?,
})

Implementation

const SafaehSyncChip({
  super.key,
  required this.state,
  required this.label,
  this.onTap,
  this.collapseAfter = const Duration(seconds: 2),
  this.collapseStates = const {SafaehSyncState.saved},
  this.minWidthForLabel = 70,
  this.compactSize = 36,
  this.colorsBuilder,
});