Studies show Modafinil isn't effective in ADHD adults. It may have benefit in children with ADHD.
I think many prescribers give ADHD adults a high dose too soon causing side-effects. In my experience, it's best to start with a low dose and slowly increase as necessary. The myth is ADHD responds quickly, but observing hundreds of patients it takes months, not days, for benefit of treatment to develop. There's wisdom in the phrase, "start low and go slow".