toUnicode method

dynamic toUnicode(
  1. dynamic arrangement, {
  2. int color = 0,
})

Implementation

dynamic toUnicode(arrangement, {int color = 0}) {
  if (!FischerRandomValidators().isValidArrangement(arrangement)) return false;
  //const type =  arrangement.runtimeType;
  List<String> converted = toUpperCase(arrangement).map((piece) => UNICODE[piece]![color == 1 ? 1 : 0]).toList();
  return converted;
}