stepAttrs function
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'),
};
}