writeAsScopedFunction method

bool writeAsScopedFunction(
  1. MoorOptions options
)

Whether we should write this parameter as a function having available result sets as parameters.

Implementation

bool writeAsScopedFunction(MoorOptions options) {
  return options.scopedDartComponents &&
      availableResultSets.isNotEmpty &&
      // Don't generate scoped functions for insertables, where the Dart type
      // already defines which fields are available
      type is! InsertableDartPlaceholderType;
}