Color get({@required String? key}) { if (_palette == null) { throw ('Palette not initialized. Please call init() before using any method.'); } return Color(int.parse(_palette!.get(key), radix: 16)); }