parameters: (view)
docstring: Checks whether @view looks like a Dart script file.
  
      Returns `True` if @view's file name ends with '.dart'.
      Returns `False` if @view isn't saved on disk.
docstring_summary: Checks whether @view looks like a Dart script file.
docstring_tokens: Checks whether @view looks like a Dart script file .
function: def is_view_dart_script(view):
      """Checks whether @view looks like a Dart script file.
  
      Returns `True` if @view's file name ends with '.dart'.
      Returns `False` if @view isn't saved on disk.
      """
      try:
          if view.file_name() is None:
              return False
          return is_dart_script(view.file_name())
      except AttributeError:
          # view is a path
          return is_dart_script(view)
function_tokens: def is_view_dart_script ( view ) : try : if view . file_name ( ) is None : return False return is_dart_script ( view . file_name ( ) ) except AttributeError : # view is a path return is_dart_script ( view )