of static method
Get context-aware color scheme from BuildContext.
Automatically detects the current theme brightness and returns a FlyColorScheme that provides colors appropriate for the current theme.
Example
// In a widget build method
final colors = FlyColor.of(context);
Container(color: colors.blue1); // Automatically uses light or dark variant
Implementation
static FlyColorScheme of(BuildContext context) {
final brightness = Theme.of(context).brightness;
return FlyColorScheme(isLight: brightness == Brightness.light);
}