Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8838955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:07:43+00:00 2026-06-14T10:07:43+00:00

I was trying to use the new show syntax to reduce the size of

  • 0

I was trying to use the new show syntax to reduce the size of the compiled js code. This works fine as long as I don’t need any kind of window events.

When I add window to show then, the editor says everything is fine. When I then run the application I get:

Exception: NoSuchMethodError : method not found: 'get:window'
Receiver: Instance of 'Toolbar'
Arguments: []
Stack Trace: #0      Object._noSuchMethod (dart:core-patch:1261:3)
#1      Object.noSuchMethod (dart:core-patch:1264:25)
#2      Toolbar._init (...toolbar.dart:93:5)
#3      Toolbar.Toolbar.initialize (...toolbar.dart:47:10)
#4      main (...toolbar.dart:29:21)

Is there any other way to get a window instance without using window variable?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T10:07:44+00:00Added an answer on June 14, 2026 at 10:07 am

    Are you sure using show actually helps with the size of the compiled JavaScript code? You shouldn’t need to do that. Thanks to tree shaking and dead code elimination, only what you use will show up in the compiled output.

    You use show to have tight control over what you import that way it’s obvious what things are coming from what libraries. If you import a lot of libraries without using show, it’s hard to tell what’s coming from where, which can be a challenge with very large codebases.

    You can also use show if you import two different libraries that have functions or classes that use the same name. By using show, you can specify which one you want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to use this code to connect the AD PrincipalContext context = new PrincipalContext(ContextType.Domain,
I'm trying to use the new iOS6 UIActivityViewController and it works fine except that
I'm trying to use the following code to show one intent if the record
I'm trying to use the below code to show a Balloon notification. I've verified
I am trying to use new Google Cloud Messaging system but I have some
I am trying to use the new Eventmanager of the Zend Framework 2. I
I am trying to use nunits new way of exception handling but I am
I'm trying to use the new OpenCV 2.0 API in MS Visual C++ 2008
I am trying to use the new immutable OptionParser in the Scala scopt 2.0.1
I'm trying to use the new ASP.NET Web API to do the following: A

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.