put method
Implementation
void put({@required String? key, @required Color? color}) {
if (_palette == null) {
throw ('Palette not initialized. Please call init() before using any method.');
}
_palette!.put(key, color!.value.toRadixString(16).toUpperCase());
}