stepAttrs function

Map<String, String> stepAttrs({
  1. required String groupId,
  2. required int index,
  3. bool active = false,
  4. bool completed = false,
})

Implementation

Map<String, String> stepAttrs({
  required String groupId,
  required int index,
  bool active = false,
  bool completed = false,
}) {
  return <String, String>{
    'data-arcane-stepper': groupId,
    'data-arcane-step': index.toString(),
    'data-arcane-state': active
        ? 'active'
        : (completed ? 'completed' : 'pending'),
  };
}