DEV Community

Eko
Eko

Posted on

Dart Singleton

import 'package:flutter/material.dart';

class AppColors {
static final AppColors _appColors = AppColors._internal();

factory AppColors() => _appColors;

AppColors._internal();

static AppColors get appColors => _appColors;

static const white = Color(0xFFFFFFFF);
static const black = Color(0xFF000000);

}

Discussion (0)