getSeparatorColor method
Returns the color of the separatorIcon.
If no value is set in the theme, the color of the item is returned with opacity 0.45
(the app theme is taken from the context
).
Implementation
Color getSeparatorColor(BuildContext context, [Color? color]) {
return separatorColor ??
(color ?? getItemColor(context, color)).withOpacity(0.45);
}