generateProviderExtMethods method

void generateProviderExtMethods(
  1. StringBuffer strBuffer,
  2. String className
)

Implementation

void generateProviderExtMethods(StringBuffer strBuffer, String className) {
  strBuffer.writeln('''
      extension ${className}ProviderExtensionMethodsOnBuildContext on BuildContext {
        $className read$className() => read<$className>();
        $className watch$className() => watch<$className>();
        R select$className<R>(R Function($className s) selector) => select(selector);
      }
    ''');
  strBuffer.writeln();
}