addLog method

void addLog(
  1. {required BuildContext context,
  2. required String previousCommand,
  3. required String currentCommand,
  4. required CatLoggingLevel description}
)

Implementation

void addLog({
  required BuildContext context,
  required String previousCommand,
  required String currentCommand,
  required CatLoggingLevel description,
}) {
  // print(previousCommand);
  // print(currentCommand);
  // print(description);
  _logs[DateTime.now().toIso8601String()] = LoggerInfo(
    previousCommand: previousCommand,
    currentCommand: currentCommand,
    description: description,
    interface: context.read<TypeUpdateNotifier>().state,
    visualFeedback: context.read<VisibilityNotifier>().visible,
    schema: SchemasReader().currentIndex,
  );
  notifyListeners();
}