parameters: (cls, path)
return_statement: return dart_view
docstring: @path
            A path to a file.
function: def from_path(cls, path):
          '''
          @path
            A path to a file.
          '''
          assert isinstance(path, str), 'wrong call'
          dart_view = cls(None)
          dart_view.path = path
          return dart_view
function_tokens: def from_path ( cls , path ) : assert isinstance ( path , str ) , 'wrong call' dart_view = cls ( None ) dart_view . path = path return dart_view