ProviderInfo constructor

const ProviderInfo({
  1. RiverpodCraftOptions options = RiverpodCraftOptions.empty,
  2. required String name,
  3. required String dataType,
  4. required bool isKeepAlive,
  5. required ProviderType type,
  6. required List<ParameterInfo> params,
  7. required List<Command> commands,
  8. bool isFunctional = false,
  9. String? functionName,
  10. bool requiresRef = false,
  11. bool isSettable = false,
  12. bool isNoInit = false,
  13. bool hasPagedMapper = false,
  14. List<String> allProviderVarNames = const [],
  15. List<PublicMethod> publicMethods = const [],
  16. String pageKeyType = 'int',
})

Implementation

const ProviderInfo({
  this.options = RiverpodCraftOptions.empty,
  required this.name,
  required String dataType,
  required this.isKeepAlive,
  required this.type,
  required this.params,
  required this.commands,
  this.isFunctional = false,
  this.functionName,
  this.requiresRef = false,
  this.isSettable = false,
  this.isNoInit = false,
  this.hasPagedMapper = false,
  this.allProviderVarNames = const [],
  this.publicMethods = const [],
  this.pageKeyType = 'int',
}) : _dataType = dataType;