>>> preserve flush left comment class TestName { static const String realtimePresenceSubscribe = 'realtimePresenceSubscribe'; // TODO(tiholic) handle realtimeHistoryWithAuthCallback // This is not a test, but a way to retrieve // more information of failures from any of the tests cases static const String getFlutterErrors = 'getFlutterErrors'; } <<< class TestName { static const String realtimePresenceSubscribe = 'realtimePresenceSubscribe'; // TODO(tiholic) handle realtimeHistoryWithAuthCallback // This is not a test, but a way to retrieve // more information of failures from any of the tests cases static const String getFlutterErrors = 'getFlutterErrors'; } >>> preserve flush left comment class BusStationResult { BusStationResult.ios(BusStationResult_iOS result) { pageCount = result.count; // searchSuggestionCities = result.suggestion.cities?.map((city) { // return SuggestionCity( // cityName: city.city, // cityCode: city.citycode, // adCode: city.adcode, // suggestionNum: city.num, // districts: city.districts?.map((district) { // return District( // // ); // }); // ); // }); searchSuggestionKeywords = result.suggestion.keywords; } } <<< class BusStationResult { BusStationResult.ios(BusStationResult_iOS result) { pageCount = result.count; // searchSuggestionCities = result.suggestion.cities?.map((city) { // return SuggestionCity( // cityName: city.city, // cityCode: city.citycode, // adCode: city.adcode, // suggestionNum: city.num, // districts: city.districts?.map((district) { // return District( // // ); // }); // ); // }); searchSuggestionKeywords = result.suggestion.keywords; } } >>> preserve flush left comment class Semester { String get code => '$year$value'; // String get cacheSaveTag => '${Helper.username}_$code'; Semester({ this.year, this.value, this.text, }); } <<< class Semester { String get code => '$year$value'; // String get cacheSaveTag => '${Helper.username}_$code'; Semester({ this.year, this.value, this.text, }); } >>> space before inline block comment class _MyAppState extends State { @override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( body: SafeArea( child: SingleChildScrollView( child: Padding( child: Column( children: [ _assetsAudioPlayer.builderCurrent( builder: (context, Playing? playing) { return Column( children: [ _assetsAudioPlayer.builderLoopMode( builder: (context, loopMode) { return PlayerBuilder.isPlaying( builder: (context, isPlaying) { return PlayingControls( onNext: () { _assetsAudioPlayer.next(keepLoopMode: true /*keepLoopMode: false*/); }, onPrevious: () { _assetsAudioPlayer.previous( /*keepLoopMode: false*/); }, ); }); }, ), ], ); }), ], ), ), ), ), ), ); } } <<< class _MyAppState extends State { @override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( body: SafeArea( child: SingleChildScrollView( child: Padding( child: Column( children: [ _assetsAudioPlayer.builderCurrent( builder: (context, Playing? playing) { return Column( children: [ _assetsAudioPlayer.builderLoopMode( builder: (context, loopMode) { return PlayerBuilder.isPlaying( builder: (context, isPlaying) { return PlayingControls( onNext: () { _assetsAudioPlayer.next( keepLoopMode: true /*keepLoopMode: false*/); }, onPrevious: () { _assetsAudioPlayer.previous( /*keepLoopMode: false*/); }, ); }); }, ), ], ); }), ], ), ), ), ), ), ); } } >>> remove blank line before comment before first case class Sizing { double heightOf({weight: sizingWeight}) { switch (weight) { //MINIMUM HEIGHT OF ITEM - 5% case sizingWeight.w0: screenWeightedHeight = logicalHeight() * 0.05; break; //10% of screen height case sizingWeight.w1: screenWeightedHeight = logicalHeight() * 0.1; break; //20% of screen height case sizingWeight.w2: screenWeightedHeight = logicalHeight() * 0.2; break; //30% of screen height case sizingWeight.w3: screenWeightedHeight = logicalHeight() * 0.3; break; } } } <<< class Sizing { double heightOf({weight: sizingWeight}) { switch (weight) { //MINIMUM HEIGHT OF ITEM - 5% case sizingWeight.w0: screenWeightedHeight = logicalHeight() * 0.05; break; //10% of screen height case sizingWeight.w1: screenWeightedHeight = logicalHeight() * 0.1; break; //20% of screen height case sizingWeight.w2: screenWeightedHeight = logicalHeight() * 0.2; break; //30% of screen height case sizingWeight.w3: screenWeightedHeight = logicalHeight() * 0.3; break; } } } >>> class CloudWatchLogStack { void fixMessage(List bytes, int time, String msg) { switch (largeMessageBehavior) { /// Truncate message by replacing middle with "..." case CloudWatchLargeMessages.truncate: addToStack(time, truncate(bytes)); return; /// Split up large message into multiple smaller ones case CloudWatchLargeMessages.split: split(bytes).forEach((splitMessage) { addToStack(time, splitMessage); }); return; } } } <<< class CloudWatchLogStack { void fixMessage(List bytes, int time, String msg) { switch (largeMessageBehavior) { /// Truncate message by replacing middle with "..." case CloudWatchLargeMessages.truncate: addToStack(time, truncate(bytes)); return; /// Split up large message into multiple smaller ones case CloudWatchLargeMessages.split: split(bytes).forEach((splitMessage) { addToStack(time, splitMessage); }); return; } } } >>> don't split empty class body class _BeagleImageDownloaderMock extends Mock implements BeagleImageDownloader {} <<< class _BeagleImageDownloaderMock extends Mock implements BeagleImageDownloader {} >>> don't split empty class body abstract class ParentRepoExternal extends CRUDRepositoryExternal { } <<< abstract class ParentRepoExternal extends CRUDRepositoryExternal {} >>> adjacent strings inside string interpolation class _ImageNetworkState extends State { String _imagePage() { return """ """; } } <<< class _ImageNetworkState extends State { String _imagePage() { return """ """; } } >>> class _Action< /*JsonSerializable*/ T> {} <<< class _Action< /*JsonSerializable*/ T> {} >>> enum RenovationBackend { frappe, firebase // To be implemented } <<< enum RenovationBackend { frappe, firebase // To be implemented }