Created
          November 6, 2020 13:15 
        
      - 
      
 - 
        
Save sgr-ksmt/d32c0530d63d77f2cec00bfb3773e903 to your computer and use it in GitHub Desktop.  
    VSCode Snippet: river_pod provider template
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | { | |
| "prvdr": { | |
| "prefix": "prvdr", | |
| "body": [ | |
| "import 'package:hooks_riverpod/hooks_riverpod.dart';", | |
| "final ${1:${TM_FILENAME_BASE/((^[a-z])|_([a-z]))/${2:/downcase}${3:/upcase}/g}} = Provider$2((ref) => ${TM_FILENAME_BASE/((^[a-z])|_([a-z]))/${2:/upcase}${3:/upcase}/g}(ref.read));", | |
| "", | |
| "class ${TM_FILENAME_BASE/((^[a-z])|_([a-z]))/${2:/upcase}${3:/upcase}/g} {", | |
| " const ${TM_FILENAME_BASE/((^[a-z])|_([a-z]))/${2:/upcase}${3:/upcase}/g}(this._read);", | |
| " final Reader _read;", | |
| "}", | |
| ] | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
Example
Special Thanks
Original: mono0926/live_templates@0024f05