Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/pigeon/lib/src/generator_tools.dart
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class Indent {
void addScoped(
String? begin,
String? end,
Function func, {
void Function() func, {
bool addTrailingNewline = true,
int nestCount = 1,
}) {
Expand All @@ -132,7 +132,7 @@ class Indent {
void writeScoped(
String? begin,
String? end,
Function func, {
void Function() func, {
int nestCount = 1,
bool addTrailingNewline = true,
}) {
Expand All @@ -148,9 +148,9 @@ class Indent {
/// Scoped increase of the indent level.
///
/// For the execution of [func] the indentation will be incremented by the given amount.
void nest(int count, Function func) {
void nest(int count, void Function() func) {
inc(count);
func(); // ignore: avoid_dynamic_calls
func();
dec(count);
}

Expand Down
Loading