If you're inside a Flutter Widget
, you can use debugPrint
, e.g.,
import 'package:flutter/foundation.dart';
debugPrint('movieTitle: $movieTitle');
otherwise, you can use Dart's built in log
function
import 'dart:developer';
log('data: $data');
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…