print method
Implementation
void print({required String message, required bool endline}) {
value = value.copyWith(
consoleContent: '${value.consoleContent}$message${endline ? '\n' : ''}',
);
Future.delayed(
const Duration(
milliseconds: 100,
),
).then((value) {
scrollController.animateTo(
scrollController.position.maxScrollExtent,
duration: const Duration(milliseconds: 300),
curve: Curves.easeOut,
);
});
}